summaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm/reg_alloc.h
diff options
context:
space:
mode:
authorGravatar lat9nq2021-07-11 22:10:38 -0400
committerGravatar ameerj2021-07-22 21:51:40 -0400
commit49946cf780c317b4c5ccabb52ec433eba01c1970 (patch)
tree628060b15b133cf3a1aaf716fba3517fc5c983f0 /src/shader_recompiler/backend/glasm/reg_alloc.h
parentmain: Update Shader Cache menu options (diff)
downloadyuzu-49946cf780c317b4c5ccabb52ec433eba01c1970.tar.gz
yuzu-49946cf780c317b4c5ccabb52ec433eba01c1970.tar.xz
yuzu-49946cf780c317b4c5ccabb52ec433eba01c1970.zip
shader_recompiler, video_core: Resolve clang errors
Silences the following warnings-turned-errors: -Wsign-conversion -Wunused-private-field -Wbraced-scalar-init -Wunused-variable And some other errors
Diffstat (limited to 'src/shader_recompiler/backend/glasm/reg_alloc.h')
-rw-r--r--src/shader_recompiler/backend/glasm/reg_alloc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/shader_recompiler/backend/glasm/reg_alloc.h b/src/shader_recompiler/backend/glasm/reg_alloc.h
index 5a703daf2..82aec66c6 100644
--- a/src/shader_recompiler/backend/glasm/reg_alloc.h
+++ b/src/shader_recompiler/backend/glasm/reg_alloc.h
@@ -86,7 +86,7 @@ struct ScalarF64 : Value {};
86 86
87class RegAlloc { 87class RegAlloc {
88public: 88public:
89 RegAlloc(EmitContext& ctx_) : ctx{ctx_} {} 89 RegAlloc() = default;
90 90
91 Register Define(IR::Inst& inst); 91 Register Define(IR::Inst& inst);
92 92
@@ -142,7 +142,6 @@ private:
142 142
143 void Free(Id id); 143 void Free(Id id);
144 144
145 EmitContext& ctx;
146 size_t num_used_registers{}; 145 size_t num_used_registers{};
147 size_t num_used_long_registers{}; 146 size_t num_used_long_registers{};
148 std::bitset<NUM_REGS> register_use{}; 147 std::bitset<NUM_REGS> register_use{};