Skip to content

Commit

Permalink
apply new asmcnode get_undefined type
Browse files Browse the repository at this point in the history
  • Loading branch information
ate47 committed May 30, 2024
1 parent 696577a commit 5c2bce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/acts/tools/gsc_opcodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6168,7 +6168,7 @@ int ASMContextNodeBlock::ComputeForEachBlocks(ASMContext& ctx) {
if (it->node->m_type == TYPE_SET) {
auto* clearKeyVal = static_cast<ASMContextNodeLeftRightOperator*>(it->node);
if (clearKeyVal->m_left->m_type == TYPE_IDENTIFIER && static_cast<ASMContextNodeIdentifier*>(clearKeyVal->m_left)->m_value == keyValName
&& clearKeyVal->m_right->m_type == TYPE_UNDEFINED) {
&& clearKeyVal->m_right->m_type == TYPE_GET_UNDEFINED) {
delete it->node;
it = m_statements.erase(it);

Expand All @@ -6177,7 +6177,7 @@ int ASMContextNodeBlock::ComputeForEachBlocks(ASMContext& ctx) {
if (it->node->m_type == TYPE_SET) {
auto* clearKeyVal = static_cast<ASMContextNodeLeftRightOperator*>(it->node);
if (clearKeyVal->m_left->m_type == TYPE_IDENTIFIER && static_cast<ASMContextNodeIdentifier*>(clearKeyVal->m_left)->m_value == arrayRefName
&& clearKeyVal->m_right->m_type == TYPE_UNDEFINED) {
&& clearKeyVal->m_right->m_type == TYPE_GET_UNDEFINED) {
delete it->node;
it = m_statements.erase(it);
}
Expand Down

0 comments on commit 5c2bce1

Please sign in to comment.