compiler: Always re-lower lowered expressions.
authorIan Lance Taylor <ian@gcc.gnu.org>
Wed, 25 Jan 2012 18:54:34 +0000 (18:54 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 25 Jan 2012 18:54:34 +0000 (18:54 +0000)
From-SVN: r183530

gcc/go/gofrontend/gogo.cc

index 2fd1219..af396dd 100644 (file)
@@ -1520,6 +1520,8 @@ Lower_parse_tree::expression(Expression** pexpr)
                                  &this->inserter_, this->iota_value_);
       if (enew == e)
        break;
+      if (enew->traverse_subexpressions(this) == TRAVERSE_EXIT)
+       return TRAVERSE_EXIT;
       *pexpr = enew;
     }
   return TRAVERSE_SKIP_COMPONENTS;