summaryrefslogtreecommitdiffstats
path: root/src/shader_recompiler/backend/glasm/emit_glasm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/shader_recompiler/backend/glasm/emit_glasm.cpp')
-rw-r--r--src/shader_recompiler/backend/glasm/emit_glasm.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shader_recompiler/backend/glasm/emit_glasm.cpp b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
index 4aa3682c2..0e9dc06a6 100644
--- a/src/shader_recompiler/backend/glasm/emit_glasm.cpp
+++ b/src/shader_recompiler/backend/glasm/emit_glasm.cpp
@@ -271,6 +271,9 @@ void EmitCode(EmitContext& ctx, const IR::Program& program) {
break;
}
}
+ if (!ctx.reg_alloc.IsEmpty()) {
+ throw LogicError("Register allocator is not empty");
+ }
}
void SetupOptions(const IR::Program& program, const Profile& profile,