diff options
Diffstat (limited to 'llvm/lib/IR/ConstantFold.cpp')
-rw-r--r-- | llvm/lib/IR/ConstantFold.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/IR/ConstantFold.cpp b/llvm/lib/IR/ConstantFold.cpp index 7af33a7..9a48f34 100644 --- 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(); } |