aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-03-05 19:26:46 +0000
committerTed Kremenek <kremenek@apple.com>2008-03-05 19:26:46 +0000
commit1aa9a58822597427814ba08df4db8a673f57eb34 (patch)
treeae42832264f45610c1f44ed9e4e03cf4ef09c59d
parent596f0a1e54f610926e8bfded9efa1c639f824ded (diff)
Fixed bogus assumption mistakenly introduced in r47955.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47958 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Analysis/LiveVariables.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Analysis/LiveVariables.cpp b/Analysis/LiveVariables.cpp
index 9515cb8eb7..52f7f4d19b 100644
--- a/Analysis/LiveVariables.cpp
+++ b/Analysis/LiveVariables.cpp
@@ -86,8 +86,7 @@ void TransferFuncs::Visit(Stmt *S) {
AD.Observer->ObserveStmt(S,AD,LiveState);
if (S == getCurrentBlkStmt()) {
- assert (!isa<Expr>(S) || getCFG().isBlkExpr(S));
- if (isa<Expr>(S)) LiveState(S,AD) = Dead;
+ if (getCFG().isBlkExpr(S)) LiveState(S,AD) = Dead;
StmtVisitor<TransferFuncs,void>::Visit(S);
}
else if (!getCFG().isBlkExpr(S))