[decompiler] clean up offline test program, reorganize decomp order (#895)

* make a new offline test

* finish up offline test and fix crash bugs
This commit is contained in:
water111
2021-10-12 20:33:26 -04:00
committed by GitHub
parent 8c4ffae4ed
commit 3a1c9eaf75
12 changed files with 924 additions and 809 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ bool try_convert_lambda(const Function& parent_function,
"ignored and is no longer required.",
lab.name);
}
if (!other_func->ir2.env.has_local_vars()) {
if (!other_func->ir2.env.has_local_vars() || !other_func->ir2.top_form) {
// don't bother if we don't even have vars.
return false;
}