================
@@ -8469,7 +8489,7 @@ void Sema::CheckInfNaNFunction(const CallExpr *Call,
bool IsInfOrIsFinite =
----------------
cor3ntin wrote:
As an aside, this is called on every function call, which seems widely
inficient.
can we do something like
```cpp
FPOptions FPO = Call->getFPFeaturesInEffect(getLangOpts());
if(FPO.getNoHonorInfs())
return;
```
(and remove `FPO.getNoHonorInfs()` in the rest of the function)
https://github.com/llvm/llvm-project/pull/123417
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits