decomp: generic (#611)

* decomp: Fix casting issue with uint64's from static data

* decomp: `generic`

* add forward declaration

Co-authored-by: water111 <48171810+water111@users.noreply.github.com>
This commit is contained in:
Tyler Wilding
2021-06-20 16:02:15 -04:00
committed by GitHub
parent 4f8403d8e6
commit 87961bdb3b
11 changed files with 328 additions and 20 deletions
+2 -2
View File
@@ -547,7 +547,7 @@ std::vector<Form*> compact_nested_logiors(GenericElement* input, const Env&) {
while (next) {
assert(next->elts().size() == 2);
result.push_back(next->elts().at(1));
auto next_next = next->elts().at(0);
auto next_next = strip_int_or_uint_cast(next->elts().at(0));
next = next_next->try_as_element<GenericElement>();
if (!next || !next->op().is_fixed(FixedOperatorKind::LOGIOR)) {
result.push_back(next_next);
@@ -778,4 +778,4 @@ Form* cast_to_bitfield_enum(const EnumType* type_info, FormPool& pool, const Env
return pool.alloc_single_element_form<GenericElement>(nullptr, oper, form_elts);
}
} // namespace decompiler
} // namespace decompiler