Fix bug in AstNode::mem2reg_as_needed_pass2()

This commit is contained in:
Clifford Wolf 2017-01-15 13:52:50 +01:00
parent b7cfb7dbd2
commit 78f65f89ff
1 changed files with 2 additions and 0 deletions

View File

@ -3079,6 +3079,8 @@ bool AstNode::mem2reg_as_needed_pass2(pool<AstNode*> &mem2reg_set, AstNode *mod,
if (bit_part_sel)
children.push_back(bit_part_sel);
did_something = true;
}
log_assert(id2ast == NULL || mem2reg_set.count(id2ast) == 0);