]> granicus.if.org Git - clang/commitdiff
Pass the correct type to BuildMemberReferenceExpr. Fixes bug 6466.
authorSebastian Redl <sebastian.redl@getdesigned.at>
Fri, 7 May 2010 09:06:26 +0000 (09:06 +0000)
committerSebastian Redl <sebastian.redl@getdesigned.at>
Fri, 7 May 2010 09:06:26 +0000 (09:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@103247 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 3ac4d133fe33917c7b63d624280c03da56d16ee4..56288eaa46c215ed7c20d46c66dde0352ffed48f 100644 (file)
@@ -2670,7 +2670,7 @@ Sema::BuildMemberReferenceExpr(ExprArg BaseArg, QualType BaseType,
       return move(Result);
   }
 
-  return BuildMemberReferenceExpr(ExprArg(*this, Base), BaseType,
+  return BuildMemberReferenceExpr(ExprArg(*this, Base), Base->getType(),
                                   OpLoc, IsArrow, SS, FirstQualifierInScope,
                                   R, TemplateArgs);
 }