Migrated LiveVariables and UninitializedVariables to now use the
tracked BlkExpr information now maintained by the CFG class.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42498 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/AST/CFG.cpp b/AST/CFG.cpp
index 3755fa6..3e6f8cc 100644
--- a/AST/CFG.cpp
+++ b/AST/CFG.cpp
@@ -949,11 +949,13 @@
}
bool CFG::isBlkExpr(const Stmt* S) {
+ assert (S != NULL);
if (const Expr* E = dyn_cast<Expr>(S)) return getBlkExprNum(E);
else return true; // Statements are by default "block-level expressions."
}
CFG::BlkExprNumTy CFG::getBlkExprNum(const Expr* E) {
+ assert(E != NULL);
if (!BlkExprMap) { BlkExprMap = (void*) PopulateBlkExprMap(*this); }
BlkExprMapTy* M = reinterpret_cast<BlkExprMapTy*>(BlkExprMap);