forked from OSchip/llvm-project
Fix a latent bug in select constantexpr handling that was broke 253.perlbmk
llvm-svn: 12562
This commit is contained in:
parent
a333b1382f
commit
b7897ce431
|
@ -1058,6 +1058,8 @@ namespace llvm {
|
|||
V.first < Instruction::BinaryOpsEnd) ||
|
||||
V.first == Instruction::Shl || V.first == Instruction::Shr)
|
||||
return new ConstantExpr(V.first, V.second[0], V.second[1]);
|
||||
if (V.first == Instruction::Select)
|
||||
return new ConstantExpr(V.second[0], V.second[1], V.second[2]);
|
||||
|
||||
assert(V.first == Instruction::GetElementPtr && "Invalid ConstantExpr!");
|
||||
|
||||
|
|
Loading…
Reference in New Issue