[clang] Fix INF/NAN warning. (PR #80290)

Zahira Ammarguellat via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 1 08:17:49 PST 2024


================
@@ -72,7 +72,9 @@ def warn_pragma_debug_unexpected_argument : Warning<
 
 def warn_fp_nan_inf_when_disabled : Warning<
   "use of %select{infinity|NaN}0%select{| via a macro}1 is undefined behavior "
-  "due to the currently enabled floating-point options">,
+  "due to the currently enabled floating-point options%select{|; mix of safe "
+  "and unsafe math options are used. Check the order of you command line "
+  "arguments}2">,
----------------
zahiraam wrote:

So if I remove that part. I don't need to have the additional bool argument in emitMacroExpansionWarnings?

https://github.com/llvm/llvm-project/pull/80290


More information about the cfe-commits mailing list