mirror of
https://github.com/open-goal/jak-project
synced 2026-09-01 09:53:12 -04:00
fix sc when the block after the delay slot is optimized out (#721)
This commit is contained in:
@@ -3263,8 +3263,14 @@ void ShortCircuitElement::push_to_stack(const Env& env, FormPool& pool, FormStac
|
||||
|
||||
entry.condition->clear();
|
||||
for (auto e : new_entries) {
|
||||
if (dynamic_cast<EmptyElement*>(e)) {
|
||||
continue;
|
||||
}
|
||||
entry.condition->push_back(e);
|
||||
}
|
||||
if (entry.condition->elts().empty()) {
|
||||
entry.condition->push_back(pool.alloc_element<EmptyElement>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user