fix debugger

This commit is contained in:
water
2021-08-11 20:21:58 -04:00
parent 3bba86ce18
commit a65357642d
3 changed files with 6 additions and 2 deletions
+1
View File
@@ -733,6 +733,7 @@ void clean_up_cond_no_else_final(Function& func, CondNoElseElement* cne) {
assert(branch);
if (branch_info_i.written_and_unused.find(reg->reg()) ==
branch_info_i.written_and_unused.end()) {
lg::error("Branch delay register used improperly: {}", reg->to_string(func.ir2.env));
throw std::runtime_error("Bad delay slot in clean_up_cond_no_else_final");
}
// assert(branch_info_i.written_and_unused.find(reg->reg()) !=