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!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2007-04-03 23:29:39 +00:00
parent ef4c916193
commit 7305084156

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