summaryrefslogtreecommitdiff
path: root/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
commit6c05f3abb9d639abe360bde5919e17f913883173 (patch)
tree601e95bd02130e470859b49dad0ec79c0e038799 /lib/Index
parent7c14490d8a1bffaff51996c6c0619242f35725fa (diff)
downloadclang-6c05f3abb9d639abe360bde5919e17f913883173.tar.gz
[index] Store correct location for namespace nested name qualifiers
rdar://32195200 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303046 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index')
-rw-r--r--lib/Index/IndexTypeSourceInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Index/IndexTypeSourceInfo.cpp b/lib/Index/IndexTypeSourceInfo.cpp
index e9ca651e00..ae27ebe6ea 100644
--- a/lib/Index/IndexTypeSourceInfo.cpp
+++ b/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: