diff options
Diffstat (limited to 'clang/lib/Index/IndexBody.cpp')
-rw-r--r-- | clang/lib/Index/IndexBody.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/Index/IndexBody.cpp b/clang/lib/Index/IndexBody.cpp index 786563a44a4..6dec45fe445 100644 --- a/clang/lib/Index/IndexBody.cpp +++ b/clang/lib/Index/IndexBody.cpp @@ -143,7 +143,7 @@ public: bool VisitMemberExpr(MemberExpr *E) { SourceLocation Loc = E->getMemberLoc(); if (Loc.isInvalid()) - Loc = E->getLocStart(); + Loc = E->getBeginLoc(); SmallVector<SymbolRelation, 4> Relations; SymbolRoleSet Roles = getRolesForRef(E, Relations); return IndexCtx.handleReference(E->getMemberDecl(), Loc, @@ -175,7 +175,7 @@ public: return true; SourceLocation Loc = NameInfo.getLoc(); if (Loc.isInvalid()) - Loc = E->getLocStart(); + Loc = E->getBeginLoc(); SmallVector<SymbolRelation, 4> Relations; SymbolRoleSet Roles = getRolesForRef(E, Relations); return IndexCtx.handleReference(Symbols[0], Loc, Parent, ParentDC, Roles, @@ -312,8 +312,8 @@ public: SmallVector<SymbolRelation, 2> Relations; addCallRole(Roles, Relations); Roles |= (unsigned)SymbolRole::Implicit; - return IndexCtx.handleReference(MD, E->getLocStart(), - Parent, ParentDC, Roles, Relations, E); + return IndexCtx.handleReference(MD, E->getBeginLoc(), Parent, ParentDC, + Roles, Relations, E); } bool VisitObjCBoxedExpr(ObjCBoxedExpr *E) { |