summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/frontend/ir/microinstruction.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-04-21 07:43:44 +0200
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-23 03:51:28 +0200
commitf66851e37682ce538172b0945908227ada8d21ac (patch)
tree2e102ea36e034d7be86abae1165010a1b9612ce7 /src/shader_recompiler/frontend/ir/microinstruction.cpp
parentshader: Inline common Value functions into the header (diff)
downloadyuzu-f66851e37682ce538172b0945908227ada8d21ac.tar
yuzu-f66851e37682ce538172b0945908227ada8d21ac.tar.gz
yuzu-f66851e37682ce538172b0945908227ada8d21ac.tar.bz2
yuzu-f66851e37682ce538172b0945908227ada8d21ac.tar.lz
yuzu-f66851e37682ce538172b0945908227ada8d21ac.tar.xz
yuzu-f66851e37682ce538172b0945908227ada8d21ac.tar.zst
yuzu-f66851e37682ce538172b0945908227ada8d21ac.zip
Diffstat (limited to 'src/shader_recompiler/frontend/ir/microinstruction.cpp')
-rw-r--r--src/shader_recompiler/frontend/ir/microinstruction.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shader_recompiler/frontend/ir/microinstruction.cpp b/src/shader_recompiler/frontend/ir/microinstruction.cpp
index 701746a0c..e3350931b 100644
--- a/src/shader_recompiler/frontend/ir/microinstruction.cpp
+++ b/src/shader_recompiler/frontend/ir/microinstruction.cpp
@@ -279,8 +279,10 @@ void Inst::ClearArgs() {
if (!value.IsImmediate()) {
UndoUse(value);
}
- value = {};
}
+ // Reset arguments to null
+ // std::memset was measured to be faster on MSVC than std::ranges:fill
+ std::memset(&args, 0, sizeof(args));
}
}