[PATCH] D74812: [Sema] Teach -Warm-interrupt-safety about func ptrs
Jonathan Roelofs via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 18 19:33:39 PST 2020
jroelofs marked an inline comment as done.
jroelofs added inline comments.
================
Comment at: clang/lib/Sema/SemaExpr.cpp:5931
+ if (Caller->hasAttr<ARMInterruptAttr>()) {
+ const Decl *CalleeDecl = FDecl;
+ if (const auto *UO = dyn_cast<UnaryOperator>(Fn->IgnoreParens())) {
----------------
This feels very fragile, and I know is missing at least one case. Is there a better way to reliably get at the typedef's attributes from here?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74812/new/
https://reviews.llvm.org/D74812
More information about the cfe-commits
mailing list