aboutsummaryrefslogtreecommitdiff
path: root/include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h')
-rw-r--r--include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h b/include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h
index 264f20f19ad5..47dac4362c8e 100644
--- a/include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h
+++ b/include/clang/AST/LexicallyOrderedRecursiveASTVisitor.h
@@ -99,8 +99,8 @@ public:
LexicallyNestedDeclarations.clear();
for (++I; I != E; ++I) {
Decl *Sibling = *I;
- if (!SM.isBeforeInTranslationUnit(Sibling->getLocStart(),
- Child->getLocEnd()))
+ if (!SM.isBeforeInTranslationUnit(Sibling->getBeginLoc(),
+ Child->getEndLoc()))
break;
if (!BaseType::canIgnoreChildDeclWhileTraversingDeclContext(Sibling))
LexicallyNestedDeclarations.push_back(Sibling);