[PATCH] D55115: [IR] Don't assume all functions are 4 byte aligned
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 30 14:13:05 PST 2018
efriedma added inline comments.
================
Comment at: lib/IR/ConstantFold.cpp:1080
- // Functions are at least 4-byte aligned.
unsigned GVAlign = GV->getAlignment();
+
----------------
Can you fix this to just call getPointerAlignment() instead of trying to recreate it?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55115/new/
https://reviews.llvm.org/D55115
More information about the llvm-commits
mailing list