diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-03-05 19:26:46 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-03-05 19:26:46 +0000 |
commit | 1aa9a58822597427814ba08df4db8a673f57eb34 (patch) | |
tree | ae42832264f45610c1f44ed9e4e03cf4ef09c59d | |
parent | 596f0a1e54f610926e8bfded9efa1c639f824ded (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.cpp | 3 |
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)) |