diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-09-29 19:44:27 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2009-09-29 19:44:27 +0000 |
commit | f4526e3fd48248af78b3d59ec36a37bc055b326f (patch) | |
tree | 937143c4352bb089ece89213bf9649d7a2f2e25a /lib/Index/ResolveLocation.cpp | |
parent | f352bddf015e537350416c296dd2963524f554f9 (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.cpp | 2 |
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; } |