[clang] [Clang] Add constexpr eval for cmath builtins (PR #194327)
Hubert Tong via cfe-commits
cfe-commits at lists.llvm.org
Sun May 10 16:22:04 PDT 2026
================
@@ -199,6 +199,25 @@ static llvm::APSInt convertBoolVectorToInt(const Pointer &Val) {
return Result;
}
+static bool CheckFloatResult(InterpState &S, CodePtr OpPC,
+ const APFloat &Result, APFloat::opStatus Status) {
+ if (S.inConstantContext())
+ return true;
+
----------------
hubert-reinterpretcast wrote:
This seems suspicious.
https://github.com/llvm/llvm-project/pull/194327
More information about the cfe-commits
mailing list