mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-08 11:58:10 +00:00
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
This commit is contained in:
parent
d5005ccac4
commit
9f26f73179
@ -1417,7 +1417,7 @@ bool SCCP::runOnFunction(Function &F) {
|
|||||||
Instruction *Inst = BI++;
|
Instruction *Inst = BI++;
|
||||||
if (Inst->getType() != Type::VoidTy) {
|
if (Inst->getType() != Type::VoidTy) {
|
||||||
LatticeVal &IV = Values[Inst];
|
LatticeVal &IV = Values[Inst];
|
||||||
if (IV.isConstant() || IV.isUndefined() &&
|
if ((IV.isConstant() || IV.isUndefined()) &&
|
||||||
!isa<TerminatorInst>(Inst)) {
|
!isa<TerminatorInst>(Inst)) {
|
||||||
Constant *Const = IV.isConstant()
|
Constant *Const = IV.isConstant()
|
||||||
? IV.getConstant() : UndefValue::get(Inst->getType());
|
? IV.getConstant() : UndefValue::get(Inst->getType());
|
||||||
|
Loading…
Reference in New Issue
Block a user