diff options
Diffstat (limited to 'src/shader_recompiler/frontend')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/microinstruction.cpp | 2 | ||||
| -rw-r--r-- | src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp | 2 |
2 files changed, 2 insertions, 2 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() { | |||
| 282 | } | 282 | } |
| 283 | // Reset arguments to null | 283 | // Reset arguments to null |
| 284 | // std::memset was measured to be faster on MSVC than std::ranges:fill | 284 | // std::memset was measured to be faster on MSVC than std::ranges:fill |
| 285 | std::memset(&args, 0, sizeof(args)); | 285 | std::memset(reinterpret_cast<char*>(&args), 0, sizeof(args)); |
| 286 | } | 286 | } |
| 287 | } | 287 | } |
| 288 | 288 | ||
diff --git a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp index b85b613f3..cc5410c6d 100644 --- a/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp +++ b/src/shader_recompiler/frontend/maxwell/structured_control_flow.cpp | |||
| @@ -267,7 +267,7 @@ bool IsIndirectlyRelated(Node goto_stmt, Node label_stmt) { | |||
| 267 | return goto_stmt->up != label_stmt->up && !IsDirectlyRelated(goto_stmt, label_stmt); | 267 | return goto_stmt->up != label_stmt->up && !IsDirectlyRelated(goto_stmt, label_stmt); |
| 268 | } | 268 | } |
| 269 | 269 | ||
| 270 | bool AreSiblings(Node goto_stmt, Node label_stmt) noexcept { | 270 | [[maybe_unused]] bool AreSiblings(Node goto_stmt, Node label_stmt) noexcept { |
| 271 | Node it{goto_stmt}; | 271 | Node it{goto_stmt}; |
| 272 | do { | 272 | do { |
| 273 | if (it == label_stmt) { | 273 | if (it == label_stmt) { |