forked from OSchip/llvm-project
Pass the correct type to BuildMemberReferenceExpr. Fixes bug 6466.
llvm-svn: 103247
This commit is contained in:
parent
06821c9e90
commit
019b5dbc55
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue