[PATCH] D122821: CallBase: fix getFnAttr so it also checks the function
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 31 08:37:31 PDT 2022
nikic added a reviewer: nikic.
nikic added inline comments.
================
Comment at: llvm/include/llvm/IR/InstrTypes.h:1617-1618
Attribute getFnAttr(StringRef Kind) const {
- return getAttributes().getFnAttr(Kind);
+ if (Attrs.hasFnAttr(Kind))
+ return getAttributes().getFnAttr(Kind);
+ return getFnAttrOnCalledFunction(Kind);
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D122821/new/
https://reviews.llvm.org/D122821
More information about the llvm-commits
mailing list