From 78f65f89ffc1d5c5237009c19e84e625ce3085aa Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sun, 15 Jan 2017 13:52:50 +0100 Subject: [PATCH] Fix bug in AstNode::mem2reg_as_needed_pass2() --- frontends/ast/simplify.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc index de85355b5..c1e77c6ec 100644 --- a/frontends/ast/simplify.cc +++ b/frontends/ast/simplify.cc @@ -3079,6 +3079,8 @@ bool AstNode::mem2reg_as_needed_pass2(pool &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); -- 2.30.2