2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

emit_glasm_context_get_set: Remove unused variable

This commit is contained in:
lat9nq 2021-05-31 16:57:11 -04:00 committed by ameerj
parent 5539b13c5a
commit 22f0c4f002

View file

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