mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-15 07:33:18 +00: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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35633 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ef4c916193
commit
7305084156
@ -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…
x
Reference in New Issue
Block a user