[clang] [libc] [llvm] [clang] Make __builtin_exp and __builtin_expf constexpr. (PR #199808)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Sep 12 20:25:10 PDT 2026
================
@@ -2737,7 +2741,8 @@ static bool checkFloatingPointResult(EvalInfo &Info, const Expr *E,
// - the expression being evaluated is not a part of global variable
// initializer,
// the evaluation probably need to be rejected.
- return true;
+ Info.FFDiag(E, diag::note_constexpr_float_arithmetic_strict);
+ return false;
----------------
lntue wrote:
Done. I updated the checks to deal with global variable initializers.
https://github.com/llvm/llvm-project/pull/199808
More information about the cfe-commits
mailing list