jitstate: const correctness

GetReturnFromRunCodeAddress is const qualified, so this can accept a const
pointer. This also allows for making the constructor accept a const
pointer as well.
This commit is contained in:
Lioncash 2016-08-16 13:41:16 -04:00 committed by MerryMage
parent 9ed9f4c565
commit 74ee92ee38
2 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@
namespace Dynarmic {
namespace BackendX64 {
void JitState::ResetRSB(BlockOfCode* code) {
void JitState::ResetRSB(const BlockOfCode* code) {
for (auto& value : rsb_codeptrs) {
value = u64(code->GetReturnFromRunCodeAddress());
}