diff options
Diffstat (limited to 'src/shader_recompiler/backend/glasm/reg_alloc.cpp')
| -rw-r--r-- | src/shader_recompiler/backend/glasm/reg_alloc.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/shader_recompiler/backend/glasm/reg_alloc.cpp b/src/shader_recompiler/backend/glasm/reg_alloc.cpp index 55e8107e9..010ad0275 100644 --- a/src/shader_recompiler/backend/glasm/reg_alloc.cpp +++ b/src/shader_recompiler/backend/glasm/reg_alloc.cpp | |||
| @@ -68,11 +68,11 @@ Id RegAlloc::Alloc() { | |||
| 68 | } | 68 | } |
| 69 | num_used_registers = std::max(num_used_registers, reg + 1); | 69 | num_used_registers = std::max(num_used_registers, reg + 1); |
| 70 | register_use[reg] = true; | 70 | register_use[reg] = true; |
| 71 | return Id{ | 71 | Id ret{}; |
| 72 | .index = static_cast<u32>(reg), | 72 | ret.index.Assign(static_cast<u32>(reg)); |
| 73 | .is_spill = 0, | 73 | ret.is_spill.Assign(0); |
| 74 | .is_condition_code = 0, | 74 | ret.is_condition_code.Assign(0); |
| 75 | }; | 75 | return ret; |
| 76 | } | 76 | } |
| 77 | throw NotImplementedException("Register spilling"); | 77 | throw NotImplementedException("Register spilling"); |
| 78 | } | 78 | } |