summaryrefslogtreecommitdiffstats
path: root/src/video_core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2020-06-20 03:57:41 +0200
committerLioncash <mathew1800@gmail.com>2020-06-20 03:57:44 +0200
commit811bff009eca0d0fa2ddb1455fc73fdaec4474da (patch)
tree100af5edbd4d8a4f270f7a84bb7faaa5bed11b42 /src/video_core
parentbuffer_cache: Eliminate local variable shadowing (diff)
downloadyuzu-811bff009eca0d0fa2ddb1455fc73fdaec4474da.tar
yuzu-811bff009eca0d0fa2ddb1455fc73fdaec4474da.tar.gz
yuzu-811bff009eca0d0fa2ddb1455fc73fdaec4474da.tar.bz2
yuzu-811bff009eca0d0fa2ddb1455fc73fdaec4474da.tar.lz
yuzu-811bff009eca0d0fa2ddb1455fc73fdaec4474da.tar.xz
yuzu-811bff009eca0d0fa2ddb1455fc73fdaec4474da.tar.zst
yuzu-811bff009eca0d0fa2ddb1455fc73fdaec4474da.zip
Diffstat (limited to 'src/video_core')
-rw-r--r--src/video_core/macro/macro_jit_x64.cpp4
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) {
}
void MacroJITx64Impl::Compile_ProcessResult(Macro::ResultOperation operation, u32 reg) {
- auto SetRegister = [=](u32 reg, Xbyak::Reg32 result) {
+ const auto SetRegister = [this](u32 reg, const Xbyak::Reg32& result) {
// Register 0 is supposed to always return 0. NOP is implemented as a store to the zero
// register.
if (reg == 0) {
@@ -554,7 +554,7 @@ void MacroJITx64Impl::Compile_ProcessResult(Macro::ResultOperation operation, u3
}
mov(dword[STATE + offsetof(JITState, registers) + reg * sizeof(u32)], result);
};
- auto SetMethodAddress = [=](Xbyak::Reg32 reg) { mov(METHOD_ADDRESS, reg); };
+ const auto SetMethodAddress = [this](const Xbyak::Reg32& reg) { mov(METHOD_ADDRESS, reg); };
switch (operation) {
case Macro::ResultOperation::IgnoreAndFetch: