mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
Fix a bug I introduced with my patch yesterday which broke Qt (I converted
some constant exprs to apints). Thanks to Anton for tracking down a small testcase that triggered this! llvm-svn: 35633
This commit is contained in:
parent
59994ede6b
commit
974e931689
@ -5087,7 +5087,7 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI,
|
||||
Mask, LHSI->getName()+".mask");
|
||||
Value *And = InsertNewInstBefore(AndI, ICI);
|
||||
return new ICmpInst(ICI.getPredicate(), And,
|
||||
ConstantInt::get(RHSV << ShAmtVal));
|
||||
ConstantInt::get(RHSV.lshr(ShAmtVal)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user