summaryrefslogtreecommitdiffstats
path: root/src/video_core/macro
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2020-06-22 04:38:04 +0200
committerGitHub <noreply@github.com>2020-06-22 04:38:04 +0200
commit14a1181a97e096de6ac8fb4f4b80f01e092aae9d (patch)
tree798af67b758500927791cbbb148f60e32de6bc90 /src/video_core/macro
parentMerge pull request #4126 from lioncash/noexcept (diff)
parentmemory_manager: Eliminate variable shadowing (diff)
downloadyuzu-14a1181a97e096de6ac8fb4f4b80f01e092aae9d.tar
yuzu-14a1181a97e096de6ac8fb4f4b80f01e092aae9d.tar.gz
yuzu-14a1181a97e096de6ac8fb4f4b80f01e092aae9d.tar.bz2
yuzu-14a1181a97e096de6ac8fb4f4b80f01e092aae9d.tar.lz
yuzu-14a1181a97e096de6ac8fb4f4b80f01e092aae9d.tar.xz
yuzu-14a1181a97e096de6ac8fb4f4b80f01e092aae9d.tar.zst
yuzu-14a1181a97e096de6ac8fb4f4b80f01e092aae9d.zip
Diffstat (limited to 'src/video_core/macro')
-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 389b58989..30abb66e5 100644
--- a/src/video_core/macro/macro_jit_x64.cpp
+++ b/src/video_core/macro/macro_jit_x64.cpp
@@ -553,7 +553,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) {
@@ -561,7 +561,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: