summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-09-17 10:21:45 +0000
committerGabor Greif <ggreif@gmail.com>2010-09-17 10:21:45 +0000
commit433c9e146a5244cc05a2a8c445f96cb439f0a271 (patch)
tree4d774ebbf712dc3b78f29771a53cb70fc505c8b0 /clang/lib/Parse/ParseExpr.cpp
parent018f965a77f5bb299f7b9e470721af6517fd2185 (diff)
downloadbcm5719-llvm-433c9e146a5244cc05a2a8c445f96cb439f0a271.tar.gz
bcm5719-llvm-433c9e146a5244cc05a2a8c445f96cb439f0a271.zip
rename variable, 'Type' seems to be present in
the enclosing scope, which confuses gcc v3.4 to no end llvm-svn: 114174
Diffstat (limited to 'clang/lib/Parse/ParseExpr.cpp')
-rw-r--r--clang/lib/Parse/ParseExpr.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/Parse/ParseExpr.cpp b/clang/lib/Parse/ParseExpr.cpp
index be468d537d7..15c3e6ea0e2 100644
--- a/clang/lib/Parse/ParseExpr.cpp
+++ b/clang/lib/Parse/ParseExpr.cpp
@@ -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(),
OpenPOWER on IntegriCloud