]> granicus.if.org Git - clang/commitdiff
rename variable, 'Type' seems to be present in
authorGabor Greif <ggreif@gmail.com>
Fri, 17 Sep 2010 10:21:45 +0000 (10:21 +0000)
committerGabor Greif <ggreif@gmail.com>
Fri, 17 Sep 2010 10:21:45 +0000 (10:21 +0000)
the enclosing scope, which confuses gcc v3.4 to no end

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@114174 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Parse/ParseExpr.cpp

index be468d537d75e2dff871d9efc8ad3c0a3146c549..15c3e6ea0e297064ce45a0f710dd7df1bf708877 100644 (file)
@@ -683,15 +683,15 @@ ExprResult Parser::ParseCastExpression(bool isUnaryExpression,
     if (getLang().ObjC1 && Tok.is(tok::identifier)) {
       const Token& Next = NextToken();
       if (Next.is(tok::colon) || Next.is(tok::r_square))
-        if (ParsedType Type = Actions.getTypeName(II, ILoc, getCurScope()))
-          if (Type.get()->isObjCObjectOrInterfaceType()) {
+        if (ParsedType Typ = Actions.getTypeName(II, ILoc, getCurScope()))
+          if (Typ.get()->isObjCObjectOrInterfaceType()) {
             // Fake up a Declarator to use with ActOnTypeName.
             DeclSpec DS;
             DS.SetRangeStart(ILoc);
             DS.SetRangeEnd(ILoc);
             const char *PrevSpec = 0;
             unsigned DiagID;
-            DS.SetTypeSpecType(TST_typename, ILoc, PrevSpec, DiagID, Type);
+            DS.SetTypeSpecType(TST_typename, ILoc, PrevSpec, DiagID, Typ);
             
             Declarator DeclaratorInfo(DS, Declarator::TypeNameContext);
             TypeResult Ty = Actions.ActOnTypeName(getCurScope(),