projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7004ac8
)
As r237678 was reverted, this is no longer needed.
author
Yaron Keren
<yaron.keren@gmail.com>
Tue, 19 May 2015 11:46:27 +0000
(11:46 +0000)
committer
Yaron Keren
<yaron.keren@gmail.com>
Tue, 19 May 2015 11:46:27 +0000
(11:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237687
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/IR/ConstantFold.cpp
patch
|
blob
|
history
diff --git
a/lib/IR/ConstantFold.cpp
b/lib/IR/ConstantFold.cpp
index 178612c6a3e7234e0fc3eac8f36a3881b8557f44..16b113df1b80ed51cf4fb93eaac7c91a338ac896 100644
(file)
--- a/
lib/IR/ConstantFold.cpp
+++ b/
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.