From: Argyrios Kyrtzidis Date: Wed, 29 Jul 2009 23:38:51 +0000 (+0000) Subject: Add an assert. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=daf253d73d6a6248edc458587f4e88763e1e1583;p=clang Add an assert. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77527 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Index/Indexer.cpp b/lib/Index/Indexer.cpp index 9a49496d74..0b534b3881 100644 --- a/lib/Index/Indexer.cpp +++ b/lib/Index/Indexer.cpp @@ -38,6 +38,7 @@ public: } // anonymous namespace void Indexer::IndexAST(TranslationUnit *TU) { + assert(TU && "Passed null TranslationUnit"); EntityIndexer Idx(TU, Map); Prog.FindEntities(TU->getASTContext(), Idx); }