diff options
Diffstat (limited to 'src/shader_recompiler/frontend/ir/reg.h')
| -rw-r--r-- | src/shader_recompiler/frontend/ir/reg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shader_recompiler/frontend/ir/reg.h b/src/shader_recompiler/frontend/ir/reg.h index 8fea05f7b..3845ec5fb 100644 --- a/src/shader_recompiler/frontend/ir/reg.h +++ b/src/shader_recompiler/frontend/ir/reg.h | |||
| @@ -293,12 +293,12 @@ constexpr size_t NUM_REGS = 256; | |||
| 293 | return reg + (-num); | 293 | return reg + (-num); |
| 294 | } | 294 | } |
| 295 | 295 | ||
| 296 | [[nodiscard]] constexpr Reg operator++(Reg& reg) { | 296 | constexpr Reg operator++(Reg& reg) { |
| 297 | reg = reg + 1; | 297 | reg = reg + 1; |
| 298 | return reg; | 298 | return reg; |
| 299 | } | 299 | } |
| 300 | 300 | ||
| 301 | [[nodiscard]] constexpr Reg operator++(Reg& reg, int) { | 301 | constexpr Reg operator++(Reg& reg, int) { |
| 302 | const Reg copy{reg}; | 302 | const Reg copy{reg}; |
| 303 | reg = reg + 1; | 303 | reg = reg + 1; |
| 304 | return copy; | 304 | return copy; |