diff options
Diffstat (limited to 'clang/tools/index-test/index-test.cpp')
-rw-r--r-- | clang/tools/index-test/index-test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/index-test/index-test.cpp b/clang/tools/index-test/index-test.cpp index 37ecbd928f3..c9c08986463 100644 --- a/clang/tools/index-test/index-test.cpp +++ b/clang/tools/index-test/index-test.cpp @@ -152,7 +152,7 @@ static void ProcessNode(ASTLocation Node, IndexProvider &IdxProvider) { assert(Node.isValid()); Decl *D = 0; - if (Node.hasStmt()) { + if (Node.isStmt()) { if (DeclRefExpr *RefExpr = dyn_cast<DeclRefExpr>(Node.getStmt())) D = RefExpr->getDecl(); } else { |