From c8f9772d6590a018665d47a165951864ff783017 Mon Sep 17 00:00:00 2001
From: ReinUsesLisp <reinuseslisp@airmail.cc>
Date: Wed, 21 Apr 2021 06:10:04 -0300
Subject: shader: Fix gcc warnings

---
 src/shader_recompiler/frontend/ir/microinstruction.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'src/shader_recompiler/frontend/ir/microinstruction.cpp')

diff --git a/src/shader_recompiler/frontend/ir/microinstruction.cpp b/src/shader_recompiler/frontend/ir/microinstruction.cpp
index e3350931b8..b424d038e5 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));
     }
 }
 
-- 
cgit v1.2.3-70-g09d2