mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 20:12:56 +02:00
Fix PR583 and testcase Transforms/InstCombine/2005-06-15-DivSelectCrash.ll
llvm-svn: 22227
This commit is contained in:
parent
95b9f36fc5
commit
f95b989825
@ -1067,7 +1067,7 @@ Instruction *InstCombiner::visitDiv(BinaryOperator &I) {
|
||||
I.setOperand(1, SFO);
|
||||
return &I;
|
||||
} else if (SFO->getValue() == 0) {
|
||||
I.setOperand(2, STO);
|
||||
I.setOperand(1, STO);
|
||||
return &I;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user