diff options
Diffstat (limited to 'clang/tools/libclang/IndexBody.cpp')
| -rw-r--r-- | clang/tools/libclang/IndexBody.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/tools/libclang/IndexBody.cpp b/clang/tools/libclang/IndexBody.cpp index fbec3d7c017..7dc53a62753 100644 --- a/clang/tools/libclang/IndexBody.cpp +++ b/clang/tools/libclang/IndexBody.cpp @@ -170,7 +170,7 @@ void IndexingContext::indexBody(const Stmt *S, const NamedDecl *Parent, if (!S) return; - if (DC == 0) + if (!DC) DC = Parent->getLexicalDeclContext(); BodyIndexer(*this, Parent, DC).TraverseStmt(const_cast<Stmt*>(S)); } |

