summaryrefslogtreecommitdiffstats
path: root/clang/lib/Index
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2017-05-15 10:41:04 +0000
committerAlex Lorenz <arphaman@gmail.com>2017-05-15 10:41:04 +0000
commit57c4f648d1944d5e02f5fade13348cbb504505b3 (patch)
tree6bbf735412ee23b5eedac659c78b1506d8a48715 /clang/lib/Index
parent09653330bca7b9894401271879bf62ceda6c03c3 (diff)
downloadbcm5719-llvm-57c4f648d1944d5e02f5fade13348cbb504505b3.tar.gz
bcm5719-llvm-57c4f648d1944d5e02f5fade13348cbb504505b3.zip
[index] Store correct location for namespace nested name qualifiers
rdar://32195200 llvm-svn: 303046
Diffstat (limited to 'clang/lib/Index')
-rw-r--r--clang/lib/Index/IndexTypeSourceInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Index/IndexTypeSourceInfo.cpp b/clang/lib/Index/IndexTypeSourceInfo.cpp
index e9ca651e002..ae27ebe6ea4 100644
--- a/clang/lib/Index/IndexTypeSourceInfo.cpp
+++ b/clang/lib/Index/IndexTypeSourceInfo.cpp
@@ -212,7 +212,7 @@ void IndexingContext::indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS,
if (!DC)
DC = Parent->getLexicalDeclContext();
- SourceLocation Loc = NNS.getSourceRange().getBegin();
+ SourceLocation Loc = NNS.getLocalBeginLoc();
switch (NNS.getNestedNameSpecifier()->getKind()) {
case NestedNameSpecifier::Identifier:
OpenPOWER on IntegriCloud