[PATCH] D123800: [BPF] handle opaque-pointer for __builtin_preserve_enum_value
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 14 09:21:52 PDT 2022
nikic added inline comments.
================
Comment at: llvm/lib/Target/BPF/BPFAbstractMemberAccess.cpp:953
+ else
+ GV = cast<GlobalVariable>(Call->getArgOperand(1));
assert(GV->hasInitializer());
----------------
Is it possible to make this `Call->getArgOperand(1)->stripPointerCasts()` instead of a manual check for ConstantExpr?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123800/new/
https://reviews.llvm.org/D123800
More information about the llvm-commits
mailing list