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 | 2c30a37a5c03bf2a4e0599ebcaea3a113be8709e (patch) | |
tree | 0e5bf2b796d61f790f72c4643f11af8348b8b64c /llvm/lib | |
parent | f9ed308aba7e81cccf290b3cd17360db3902caef (diff) | |
download | bcm5719-llvm-2c30a37a5c03bf2a4e0599ebcaea3a113be8709e.tar.gz bcm5719-llvm-2c30a37a5c03bf2a4e0599ebcaea3a113be8709e.zip |
Fix PR1431
Test case at Transformations/SCCP/2007-05-16-InvokeCrash.ll
llvm-svn: 37185
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index 30f4681c114..0e4fe8f52af 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/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()); |