[clang] Fix INF/NAN warning. (PR #80290)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 1 08:07:19 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;
----------------
AaronBallman wrote:
Why are you dropping the source ranges?
https://github.com/llvm/llvm-project/pull/80290
More information about the cfe-commits
mailing list