mirror of
https://github.com/open-goal/jak-project
synced 2026-07-07 14:13:45 -04:00
[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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user