aboutsummaryrefslogtreecommitdiff
path: root/lib/Index/ResolveLocation.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-09-29 19:44:27 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-09-29 19:44:27 +0000
commitf4526e3fd48248af78b3d59ec36a37bc055b326f (patch)
tree937143c4352bb089ece89213bf9649d7a2f2e25a /lib/Index/ResolveLocation.cpp
parentf352bddf015e537350416c296dd2963524f554f9 (diff)
Modify ASTLocation and apart from being a Decl or Stmt, allow it to also be:
-A NamedDecl reference -A TypeLoc git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83095 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Index/ResolveLocation.cpp')
-rw-r--r--lib/Index/ResolveLocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Index/ResolveLocation.cpp b/lib/Index/ResolveLocation.cpp
index 281f4d9df1..37dd94509f 100644
--- a/lib/Index/ResolveLocation.cpp
+++ b/lib/Index/ResolveLocation.cpp
@@ -183,7 +183,7 @@ ASTLocation DeclLocResolver::VisitDeclContext(DeclContext *DC) {
ASTLocation DeclLocResolver::VisitTranslationUnitDecl(TranslationUnitDecl *TU) {
ASTLocation ASTLoc = VisitDeclContext(TU);
- if (ASTLoc.getDecl() == TU)
+ if (ASTLoc.getParentDecl() == TU)
return ASTLocation();
return ASTLoc;
}