mirror of
https://github.com/open-goal/jak-project
synced 2026-07-05 13:43:52 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user