diff options
| author | Yaron Keren <yaron.keren@gmail.com> | 2015-05-19 11:46:27 +0000 |
|---|---|---|
| committer | Yaron Keren <yaron.keren@gmail.com> | 2015-05-19 11:46:27 +0000 |
| commit | 004756d366c113066c5e2c4cdb9407c22b4f732c (patch) | |
| tree | a6b5f8639b9c52da7fcc03e0c6b3d6a4ac160391 /llvm/lib/IR/ConstantFold.cpp | |
| parent | fa3f8fbed863de501e4c2d86e353755ad68f0b99 (diff) | |
| download | bcm5719-llvm-004756d366c113066c5e2c4cdb9407c22b4f732c.tar.gz bcm5719-llvm-004756d366c113066c5e2c4cdb9407c22b4f732c.zip | |
As r237678 was reverted, this is no longer needed.
llvm-svn: 237687
Diffstat (limited to 'llvm/lib/IR/ConstantFold.cpp')
| -rw-r--r-- | llvm/lib/IR/ConstantFold.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/IR/ConstantFold.cpp b/llvm/lib/IR/ConstantFold.cpp index 178612c6a3e..16b113df1b8 100644 --- a/llvm/lib/IR/ConstantFold.cpp +++ b/llvm/lib/IR/ConstantFold.cpp @@ -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. |

