[PATCH] D145793: [clang][AST] Improve diagnostic for `nullptr` constexpr function pointer call
Timm Bäder via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 10 07:47:23 PST 2023
tbaeder added inline comments.
================
Comment at: clang/lib/AST/ExprConstant.cpp:7673
+ Info.FFDiag(Callee, diag::note_constexpr_null_callee)
+ << const_cast<Expr *>(Callee);
+ return false;
----------------
Is the `const_cast` really necessary?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145793/new/
https://reviews.llvm.org/D145793
More information about the cfe-commits
mailing list