OSDN Git Service

compiler: Always re-lower lowered expressions.
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jan 2012 18:54:34 +0000 (18:54 +0000)
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Jan 2012 18:54:34 +0000 (18:54 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183530 138bc75d-0d04-0410-961f-82ee72b054a4

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;