[PATCH] D147022: inline global alias

Anton Korobeynikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 28 21:40:18 PDT 2023


asl added inline comments.


================
Comment at: llvm/include/llvm/IR/AbstractCallSite.h:225
+    if (auto *A = dyn_cast<GlobalAlias>(V))
+      return dyn_cast<Function>(A->getAliasee());
+    return dyn_cast<Function>(V);
----------------
If an alias has weak linkage, then it could be overridden by a strong definition. So you cannot resolve alias to aliasee in such case. Same for the case below


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D147022/new/

https://reviews.llvm.org/D147022



More information about the llvm-commits mailing list