[PATCH] D81911: [IR] Fix getBaseObject for GlobalAlias-to-GlobalIFunc
Dmitry Polukhin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 7 12:38:24 PDT 2020
DmitryPolukhin added inline comments.
================
Comment at: llvm/lib/IR/Globals.cpp:448
+ if (auto *GI = dyn_cast<GlobalIFunc>(C))
+ return findBaseObject(GI->getOperand(0), Aliases);
if (auto *GA = dyn_cast<GlobalAlias>(C))
----------------
DmitryPolukhin wrote:
> `return GI;` should work here I think.
Nope, it doesn't just from types point of view. But IFunc should be treated as an object itself.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D81911/new/
https://reviews.llvm.org/D81911
More information about the llvm-commits
mailing list