mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-04 21:55:06 +01:00
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:
parent
9ed9f4c565
commit
74ee92ee38
2 changed files with 3 additions and 3 deletions
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue