zahiraam 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.

https://github.com/llvm/llvm-project/pull/76873
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to