diff options
| -rw-r--r-- | src/video_core/macro/macro_jit_x64.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video_core/macro/macro_jit_x64.cpp b/src/video_core/macro/macro_jit_x64.cpp index bee34a7c0..9eface47e 100644 --- a/src/video_core/macro/macro_jit_x64.cpp +++ b/src/video_core/macro/macro_jit_x64.cpp | |||
| @@ -546,7 +546,7 @@ Xbyak::Reg32 MacroJITx64Impl::Compile_GetRegister(u32 index, Xbyak::Reg32 dst) { | |||
| 546 | } | 546 | } |
| 547 | 547 | ||
| 548 | void MacroJITx64Impl::Compile_ProcessResult(Macro::ResultOperation operation, u32 reg) { | 548 | void MacroJITx64Impl::Compile_ProcessResult(Macro::ResultOperation operation, u32 reg) { |
| 549 | auto SetRegister = [=](u32 reg, Xbyak::Reg32 result) { | 549 | const auto SetRegister = [this](u32 reg, const Xbyak::Reg32& result) { |
| 550 | // Register 0 is supposed to always return 0. NOP is implemented as a store to the zero | 550 | // Register 0 is supposed to always return 0. NOP is implemented as a store to the zero |
| 551 | // register. | 551 | // register. |
| 552 | if (reg == 0) { | 552 | if (reg == 0) { |
| @@ -554,7 +554,7 @@ void MacroJITx64Impl::Compile_ProcessResult(Macro::ResultOperation operation, u3 | |||
| 554 | } | 554 | } |
| 555 | mov(dword[STATE + offsetof(JITState, registers) + reg * sizeof(u32)], result); | 555 | mov(dword[STATE + offsetof(JITState, registers) + reg * sizeof(u32)], result); |
| 556 | }; | 556 | }; |
| 557 | auto SetMethodAddress = [=](Xbyak::Reg32 reg) { mov(METHOD_ADDRESS, reg); }; | 557 | const auto SetMethodAddress = [this](const Xbyak::Reg32& reg) { mov(METHOD_ADDRESS, reg); }; |
| 558 | 558 | ||
| 559 | switch (operation) { | 559 | switch (operation) { |
| 560 | case Macro::ResultOperation::IgnoreAndFetch: | 560 | case Macro::ResultOperation::IgnoreAndFetch: |