[Decompiler] Expressions (Part 3) (#213)

* before inserting bonus instruction

* first part of refactor for return values

* find parent method working
This commit is contained in:
water111
2021-01-25 22:08:58 -05:00
committed by GitHub
parent 2f722e6379
commit b59e33c005
22 changed files with 782 additions and 81 deletions
+6
View File
@@ -63,6 +63,12 @@ bool Function::run_type_analysis_ir2(const TypeSpec& my_type,
dts.type_prop_settings.current_method_type = guessed_name.type_name;
}
if (my_type.last_arg() == TypeSpec("none")) {
auto as_end = dynamic_cast<FunctionEndOp*>(ir2.atomic_ops->ops.back().get());
assert(as_end);
as_end->mark_function_as_no_return_value();
}
std::vector<TypeState> block_init_types, op_types;
block_init_types.resize(basic_blocks.size());
op_types.resize(ir2.atomic_ops->ops.size());