[Decompiler] Fix up pretty printing and other small changes (#311)

* fix up pretty printing

* wip

* fix pointer cast signed vs unsigned issue
This commit is contained in:
water111
2021-03-06 20:16:48 -05:00
committed by GitHub
parent 0bf189f582
commit d8a82eeca1
16 changed files with 745 additions and 454 deletions
+6 -2
View File
@@ -678,8 +678,12 @@ void clean_up_cond_no_else_final(Function& func, CondNoElseElement* cne) {
auto reg = cne->entries.at(i).false_destination;
assert(reg.has_value());
assert(branch);
assert(branch_info_i.written_and_unused.find(reg->reg()) !=
branch_info_i.written_and_unused.end());
if (branch_info_i.written_and_unused.find(reg->reg()) ==
branch_info_i.written_and_unused.end()) {
throw std::runtime_error("Bad delay slot in clean_up_cond_no_else_final");
}
// assert(branch_info_i.written_and_unused.find(reg->reg()) !=
// branch_info_i.written_and_unused.end());
}
}