Pass the correct type to BuildMemberReferenceExpr. Fixes bug 6466.

llvm-svn: 103247
This commit is contained in:
Sebastian Redl 2010-05-07 09:06:26 +00:00
parent 06821c9e90
commit 019b5dbc55
1 changed files with 1 additions and 1 deletions

View 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);
}