[PATCH] D46110: [IR] Do not assume that function pointers are aligned

Javed Absar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 26 06:27:42 PDT 2018


javed.absar added inline comments.


================
Comment at: lib/IR/Value.cpp:688
   if (auto *GO = dyn_cast<GlobalObject>(this)) {
+    if (isa<Function>(GO))
+      return 0;
----------------
Maybe a good idea to comment this change a bit


https://reviews.llvm.org/D46110





More information about the llvm-commits mailing list