1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00

Fix bug in previous checkin

llvm-svn: 10798
This commit is contained in:
Chris Lattner 2004-01-12 19:47:05 +00:00
parent cf1d9df549
commit 68c5d9e0d6

View File

@ -768,7 +768,9 @@ Instruction *InstCombiner::OptAndOp(Instruction *Op,
ConstantIntegral *AndRHS,
BinaryOperator &TheAnd) {
Value *X = Op->getOperand(0);
Constant *Together = ConstantExpr::get(Instruction::And, AndRHS, OpRHS);
Constant *Together = 0;
if (!isa<ShiftInst>(Op))
Together = ConstantExpr::get(Instruction::And, AndRHS, OpRHS);
switch (Op->getOpcode()) {
case Instruction::Xor: