diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2015-03-24 15:07:53 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2015-03-24 15:07:53 +0000 |
commit | f4cb2be05a51c6ee3aaf3939d729fe63bb81960f (patch) | |
tree | 702c257367a532ecfa454eaafea11497f8f8943f /clang/lib/Sema/SemaExprCXX.cpp | |
parent | 667ef229202b29c4a31e3693a815adf8729f4fd1 (diff) | |
download | bcm5719-llvm-f4cb2be05a51c6ee3aaf3939d729fe63bb81960f.tar.gz bcm5719-llvm-f4cb2be05a51c6ee3aaf3939d729fe63bb81960f.zip |
Track the source location of the dot or arrow operator in a MemberExpr.
Patch by Joe Ranieri!
llvm-svn: 233085
Diffstat (limited to 'clang/lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | clang/lib/Sema/SemaExprCXX.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Sema/SemaExprCXX.cpp b/clang/lib/Sema/SemaExprCXX.cpp index bdd92c041c3..5c43e0cd9c7 100644 --- a/clang/lib/Sema/SemaExprCXX.cpp +++ b/clang/lib/Sema/SemaExprCXX.cpp @@ -5771,10 +5771,9 @@ ExprResult Sema::BuildCXXMemberCallExpr(Expr *E, NamedDecl *FoundDecl, if (Exp.isInvalid()) return true; - MemberExpr *ME = - new (Context) MemberExpr(Exp.get(), /*IsArrow=*/false, Method, - SourceLocation(), Context.BoundMemberTy, - VK_RValue, OK_Ordinary); + MemberExpr *ME = new (Context) MemberExpr( + Exp.get(), /*IsArrow=*/false, SourceLocation(), Method, SourceLocation(), + Context.BoundMemberTy, VK_RValue, OK_Ordinary); if (HadMultipleCandidates) ME->setHadMultipleCandidates(true); MarkMemberReferenced(ME); |