[PATCH] D141451: [clang] report inlining decisions with -Wattribute-{warning|error}
Nick Desaulniers via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 11 14:01:10 PST 2023
nickdesaulniers added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/InlineFunction.cpp:2467-2468
+
+ const Function *Callee = CI->getCalledFunction();
+ if (Callee && (Callee->hasFnAttribute("dontcall-error") ||
+ Callee->hasFnAttribute("dontcall-warn"))) {
----------------
arsenm wrote:
> Misses constexpr casts and aliases
The base feature doesn't work with aliases (or ConstantExpr), in GCC or Clang. I should perhaps fix that first...
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141451/new/
https://reviews.llvm.org/D141451
More information about the cfe-commits
mailing list