Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

glasm: Reduce reg allocation leaks from an exception to a log

ReinUsesLisp1a02dee23a99
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm.cpp b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
index 2a0524609d..e23208d2c4 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
@@ -253,7 +253,7 @@ void EmitCode(EmitContext& ctx, const IR::Program& program) {
}
}
if (!ctx.reg_alloc.IsEmpty()) {
- throw LogicError("Register allocator is not empty");
+ // LOG_WARNING ...;
}
}