diff options
author | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-05-21 08:20:08 +0200 |
---|---|---|
committer | ameerj <52414509+ameerj@users.noreply.github.com> | 2021-07-23 03:51:35 +0200 |
commit | 78f5eb90d7c5ecd92c4e8b7f71cf97b57d78dbfd (patch) | |
tree | 8287b0f71fc69683d981baddda48449565fb20b8 /src/shader_recompiler/backend/glsl/reg_alloc.cpp | |
parent | glsl: Reusable typed variables. IADD32 (diff) | |
download | yuzu-78f5eb90d7c5ecd92c4e8b7f71cf97b57d78dbfd.tar yuzu-78f5eb90d7c5ecd92c4e8b7f71cf97b57d78dbfd.tar.gz yuzu-78f5eb90d7c5ecd92c4e8b7f71cf97b57d78dbfd.tar.bz2 yuzu-78f5eb90d7c5ecd92c4e8b7f71cf97b57d78dbfd.tar.lz yuzu-78f5eb90d7c5ecd92c4e8b7f71cf97b57d78dbfd.tar.xz yuzu-78f5eb90d7c5ecd92c4e8b7f71cf97b57d78dbfd.tar.zst yuzu-78f5eb90d7c5ecd92c4e8b7f71cf97b57d78dbfd.zip |
Diffstat (limited to 'src/shader_recompiler/backend/glsl/reg_alloc.cpp')
-rw-r--r-- | src/shader_recompiler/backend/glsl/reg_alloc.cpp | 3 |
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) { } std::string RegAlloc::Consume(const IR::Value& value) { - const auto result = value.IsImmediate() ? MakeImm(value) : Consume(*value.InstRecursive()); - return result; + return value.IsImmediate() ? MakeImm(value) : Consume(*value.InstRecursive()); } std::string RegAlloc::Consume(IR::Inst& inst) { |