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:
parent
cf1d9df549
commit
68c5d9e0d6
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user