mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 02:32:11 +00:00
hopefully resolve PR2240
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@49999 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0e4b6c7551
commit
3e5d1d8d08
@ -571,7 +571,7 @@ Constant *llvm::ConstantFoldBinaryInstruction(unsigned Opcode,
|
|||||||
|
|
||||||
if (GVAlign > 1) {
|
if (GVAlign > 1) {
|
||||||
unsigned DstWidth = CI2->getType()->getBitWidth();
|
unsigned DstWidth = CI2->getType()->getBitWidth();
|
||||||
unsigned SrcWidth = std::min(SrcWidth, Log2_32(GVAlign));
|
unsigned SrcWidth = std::min(DstWidth, Log2_32(GVAlign));
|
||||||
APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth));
|
APInt BitsNotSet(APInt::getLowBitsSet(DstWidth, SrcWidth));
|
||||||
|
|
||||||
// If checking bits we know are clear, return zero.
|
// If checking bits we know are clear, return zero.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user