aboutsummaryrefslogtreecommitdiff
path: root/src/shader_recompiler/backend/glasm/emit_glasm.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2021-05-25 02:34:08 -0300
committerameerj <52414509+ameerj@users.noreply.github.com>2021-07-22 21:51:33 -0400
commit379b305b4bc09799d53981fa6e5d9cbe6be99561 (patch)
treead68c6c457f76ba38249fdb39abbdb7b5cdbea26 /src/shader_recompiler/backend/glasm/emit_glasm.cpp
parentca05a13c62ad7693f8be924c168e400e8139b0d2 (diff)
glasm: Throw when there are register leaks
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 4aa3682c25..0e9dc06a60 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,