1
0
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:
Chris Lattner 2007-04-03 23:29:39 +00:00
parent 59994ede6b
commit 974e931689

View File

@ -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)));
}
}
}