summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/ir
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-04-21 11:10:04 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:28 +0200
commitc8f9772d6590a018665d47a165951864ff783017 (patch)
treed9f72b06b624ec4921a6aeca63504d0e71490460 /src/shader_recompiler/frontend/ir
parentshader: Inline common Value getters (diff)
downloadyuzu-c8f9772d6590a018665d47a165951864ff783017.tar
yuzu-c8f9772d6590a018665d47a165951864ff783017.tar.gz
yuzu-c8f9772d6590a018665d47a165951864ff783017.tar.bz2
yuzu-c8f9772d6590a018665d47a165951864ff783017.tar.lz
yuzu-c8f9772d6590a018665d47a165951864ff783017.tar.xz
yuzu-c8f9772d6590a018665d47a165951864ff783017.tar.zst
yuzu-c8f9772d6590a018665d47a165951864ff783017.zip
Diffstat (limited to 'src/shader_recompiler/frontend/ir')
-rw-r--r--src/shader_recompiler/frontend/ir/microinstruction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/ir/microinstruction.cpp b/src/shader_recompiler/frontend/ir/microinstruction.cpp
index e3350931b..b424d038e 100644
--- a/src/shader_recompiler/frontend/ir/microinstruction.cpp
+++ b/src/shader_recompiler/frontend/ir/microinstruction.cpp
@@ -282,7 +282,7 @@ void Inst::ClearArgs() {
}
// Reset arguments to null
// std::memset was measured to be faster on MSVC than std::ranges:fill
- std::memset(&args, 0, sizeof(args));
+ std::memset(reinterpret_cast<char*>(&args), 0, sizeof(args));
}
}