mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-04 06:09:05 +00:00
Fix Visual C++ errors C2784, C2780, C2782 after r237678.
It does not like std::min(unsigned, uint32_t). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237683 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5440f2198d
commit
a44933e6d0
@ -1057,7 +1057,8 @@ Constant *llvm::ConstantFoldBinaryInstruction(unsigned Opcode,
|
||||
|
||||
if (GVAlign > 1) {
|
||||
unsigned DstWidth = CI2->getType()->getBitWidth();
|
||||
unsigned SrcWidth = std::min(DstWidth, Log2_32(GVAlign));
|
||||
unsigned SrcWidth =
|
||||
std::min(DstWidth, static_cast<unsigned>(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