[clang] [CLANG] Add warning when comparing to INF or NAN in fast math mode. (PR #76873)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 4 10:42:29 PST 2024
================
@@ -2245,6 +2246,11 @@ Sema::CheckBuiltinFunctionCall(FunctionDecl *FDecl, unsigned BuiltinID,
case Builtin::BI__builtin_islessequal:
case Builtin::BI__builtin_islessgreater:
case Builtin::BI__builtin_isunordered:
+ if (BuiltinID == Builtin::BI__builtin_isunordered) {
----------------
andykaylor wrote:
Should this check be in SemaBuiltinUnorderedCompare()?
https://github.com/llvm/llvm-project/pull/76873
More information about the cfe-commits
mailing list