summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/frontend/ir/value.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/shader_recompiler/frontend/ir/value.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/ir/value.h b/src/shader_recompiler/frontend/ir/value.h
index 0c6bf684d..795194d41 100644
--- a/src/shader_recompiler/frontend/ir/value.h
+++ b/src/shader_recompiler/frontend/ir/value.h
@@ -197,8 +197,8 @@ public:
197 } 197 }
198 198
199 template <typename FlagsType> 199 template <typename FlagsType>
200 requires(sizeof(FlagsType) <= sizeof(u32) && std::is_trivially_copyable_v<FlagsType>) 200 requires(sizeof(FlagsType) <= sizeof(u32) &&
201 [[nodiscard]] void SetFlags(FlagsType value) noexcept { 201 std::is_trivially_copyable_v<FlagsType>) void SetFlags(FlagsType value) noexcept {
202 std::memcpy(&flags, &value, sizeof(value)); 202 std::memcpy(&flags, &value, sizeof(value));
203 } 203 }
204 204