[clang] Fix INF/NAN warning. (PR #80290)
Zahira Ammarguellat via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 1 08:18:15 PST 2024
================
@@ -9132,7 +9132,7 @@ bool Sema::SemaBuiltinUnorderedCompare(CallExpr *TheCall, unsigned BuiltinID) {
if (BuiltinID == Builtin::BI__builtin_isunordered &&
TheCall->getFPFeaturesInEffect(getLangOpts()).getNoHonorNaNs())
Diag(TheCall->getBeginLoc(), diag::warn_fp_nan_inf_when_disabled)
- << 1 << 0 << TheCall->getSourceRange();
+ << 1 << 0 << 0;
----------------
zahiraam wrote:
Putting it back and removing the additional arg.
https://github.com/llvm/llvm-project/pull/80290
More information about the cfe-commits
mailing list