summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontends/ast/simplify.cc15
1 files changed, 4 insertions, 11 deletions
diff --git a/frontends/ast/simplify.cc b/frontends/ast/simplify.cc
index 5f40b60a..47ea880c 100644
--- a/frontends/ast/simplify.cc
+++ b/frontends/ast/simplify.cc
@@ -1883,17 +1883,10 @@ AstNode *AstNode::eval_const_function(AstNode *fcall)
continue;
}
- if (child->type == AST_ASSIGN_EQ)
- {
- log_assert(block == NULL);
- delete_temp_block = true;
- block = new AstNode(AST_BLOCK);
- block->children.push_back(child->clone());
- continue;
- }
-
- child->dumpAst(NULL, "unexpected> ");
- log_abort();
+ log_assert(block == NULL);
+ delete_temp_block = true;
+ block = new AstNode(AST_BLOCK);
+ block->children.push_back(child->clone());
}
log_assert(block != NULL);