commit | d3e037ff892146de2db44f465b2985ea0e3dfb27 | [log] [tgz] |
---|---|---|
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Wed Jul 29 23:38:51 2009 +0000 |
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | Wed Jul 29 23:38:51 2009 +0000 |
tree | e3658770c62f12949342ae45f80d700a6e0a6405 | |
parent | 14df96c730c7e1458f81c23970835dd9442ed916 [diff] [blame] |
Add an assert. llvm-svn: 77527
diff --git a/clang/lib/Index/Indexer.cpp b/clang/lib/Index/Indexer.cpp index 9a49496..0b534b3 100644 --- a/clang/lib/Index/Indexer.cpp +++ b/clang/lib/Index/Indexer.cpp
@@ -38,6 +38,7 @@ } // anonymous namespace void Indexer::IndexAST(TranslationUnit *TU) { + assert(TU && "Passed null TranslationUnit"); EntityIndexer Idx(TU, Map); Prog.FindEntities(TU->getASTContext(), Idx); }