mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-20 18:45:45 +00:00
glasm: Throw when there are register leaks
This commit is contained in:
parent
143db4b112
commit
6bf6015548
2 changed files with 7 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue