summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glsl/reg_alloc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/backend/glsl/reg_alloc.cpp')
-rw-r--r--src/shader_recompiler/backend/glsl/reg_alloc.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glsl/reg_alloc.cpp b/src/shader_recompiler/backend/glsl/reg_alloc.cpp
index 5ad1872db..f4886dbfd 100644
--- a/src/shader_recompiler/backend/glsl/reg_alloc.cpp
+++ b/src/shader_recompiler/backend/glsl/reg_alloc.cpp
@@ -51,8 +51,7 @@ std::string RegAlloc::Define(IR::Inst& inst, Type type) {
51} 51}
52 52
53std::string RegAlloc::Consume(const IR::Value& value) { 53std::string RegAlloc::Consume(const IR::Value& value) {
54 const auto result = value.IsImmediate() ? MakeImm(value) : Consume(*value.InstRecursive()); 54 return value.IsImmediate() ? MakeImm(value) : Consume(*value.InstRecursive());
55 return result;
56} 55}
57 56
58std::string RegAlloc::Consume(IR::Inst& inst) { 57std::string RegAlloc::Consume(IR::Inst& inst) {