projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1285172
)
[NFC] Remove dead code
author
Guillaume Chatelet
<gchatelet@google.com>
Fri, 3 Feb 2023 16:05:45 +0000
(16:05 +0000)
committer
Guillaume Chatelet
<gchatelet@google.com>
Fri, 3 Feb 2023 16:06:11 +0000
(16:06 +0000)
llvm/lib/IR/ConstantFold.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/ConstantFold.cpp
b/llvm/lib/IR/ConstantFold.cpp
index
7af33a7
..
9a48f34
100644
(file)
--- a/
llvm/lib/IR/ConstantFold.cpp
+++ b/
llvm/lib/IR/ConstantFold.cpp
@@
-1070,10
+1070,6
@@
Constant *llvm::ConstantFoldBinaryInstruction(unsigned Opcode, Constant *C1,
// appropriate defaults
if (isa<Function>(GV) && !DL.getFunctionPtrAlign())
GVAlign = Align(4);
- } else if (isa<Function>(GV)) {
- // Without a datalayout we have to assume the worst case: that the
- // function pointer isn't aligned at all.
- GVAlign = Align(1);
} else if (isa<GlobalVariable>(GV)) {
GVAlign = cast<GlobalVariable>(GV)->getAlign().valueOrOne();
}