소스 검색

emit_glasm_context_get_set: Remove unused variable

lat9nq 5 년 전
부모
커밋
22f0c4f002
1개의 변경된 파일0개의 추가작업 그리고 1개의 파일을 삭제
  1. 0 1
      src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp

+ 0 - 1
src/shader_recompiler/backend/glasm/emit_glasm_context_get_set.cpp

@@ -20,7 +20,6 @@ void GetCbuf(EmitContext& ctx, IR::Inst& inst, const IR::Value& binding, ScalarU
     const Register ret{ctx.reg_alloc.Define(inst)};
     if (offset.type == Type::U32) {
         // Avoid reading arrays out of bounds, matching hardware's behavior
-        const u32 imm_offset{offset.imm_u32};
         if (offset.imm_u32 >= 0x10'000) {
             ctx.Add("MOV.S {},0;", ret);
             return;