Commit 387e2b80 authored by Kevin Modzelewski's avatar Kevin Modzelewski

Whoops -- fix bug

parent 63448e6a
......@@ -711,13 +711,11 @@ private:
AST_expr* remapIfExp(AST_IfExp* node) {
std::string rtn_name = nodeName(node);
AST_expr* test = remapExpr(node->test);
CFGBlock* starting_block = curblock;
AST_Branch* br = new AST_Branch();
br->col_offset = node->col_offset;
br->lineno = node->lineno;
br->test = node->test;
br->test = remapExpr(node->test);
push_back(br);
CFGBlock* iftrue = cfg->addBlock();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment