diff options
author | Devang Patel <dpatel@apple.com> | 2007-05-17 22:10:15 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-05-17 22:10:15 +0000 |
commit | 9f26f73179edecbbac322c54aee7eda2fc3907ec (patch) | |
tree | 45466a6b287fd1999e840f3b9c040c13bc9e797f | |
parent | d5005ccac4b42b1dee0fc4c820ebaa56309837e4 (diff) |
Fix PR1431
Test case at Transformations/SCCP/2007-05-16-InvokeCrash.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37185 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Transforms/Scalar/SCCP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index 30f4681c11..0e4fe8f52a 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -1417,7 +1417,7 @@ bool SCCP::runOnFunction(Function &F) { Instruction *Inst = BI++; if (Inst->getType() != Type::VoidTy) { LatticeVal &IV = Values[Inst]; - if (IV.isConstant() || IV.isUndefined() && + if ((IV.isConstant() || IV.isUndefined()) && !isa<TerminatorInst>(Inst)) { Constant *Const = IV.isConstant() ? IV.getConstant() : UndefValue::get(Inst->getType()); |