mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-05 11:46:42 +00:00
Fix PR1431
Test case at Transformations/SCCP/2007-05-16-InvokeCrash.ll llvm-svn: 37185
This commit is contained in:
parent
8b21d8aa20
commit
6e8f1aa332
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user