[llvm] [clang-tools-extra] [clang] [CLANG] Add warning when INF or NAN are used in a binary operation or as function argument in fast math mode. (PR #76873)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 29 23:52:41 PST 2024
mikaelholmen wrote:
> > > Is this expected and wanted?
> >
> >
> > Good catch! I would not expect that diagnostic; we should silence the diagnostic if it's used in a `#ifdef`, `#elifdef`, or `defined` because the value isn't necessary. Perhaps we should also silence something like `sizeof(INFINITY)` because it's unevaluated?
>
> Thanks @mikaelholmen and @AaronBallman. I will take a look and create a PR to fix the issue.
Hi @zahiraam !
Did you get anywhere with this?
https://github.com/llvm/llvm-project/pull/76873
More information about the llvm-commits
mailing list