mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
hopefully resolve PR2240
llvm-svn: 49999
This commit is contained in:
parent
2bed045e5e
commit
75df16a5b0
@ -571,7 +571,7 @@ Constant *llvm::ConstantFoldBinaryInstruction(unsigned Opcode,
|
||||
|
||||
if (GVAlign > 1) {
|
||||
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));
|
||||
|
||||
// If checking bits we know are clear, return zero.
|
||||
|
Loading…
Reference in New Issue
Block a user