As r237678 was reverted, this is no longer needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237687 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Yaron Keren 2015-05-19 11:46:27 +00:00
parent 7004ac8b5a
commit 07cfd922f0

View File

@ -1057,8 +1057,7 @@ Constant *llvm::ConstantFoldBinaryInstruction(unsigned Opcode,
if (GVAlign > 1) {
unsigned DstWidth = CI2->getType()->getBitWidth();
unsigned SrcWidth =
std::min(DstWidth, static_cast<unsigned>(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.