================
@@ -11226,12 +11232,14 @@ void Sema::CheckImplicitConversion(Expr *E, QualType 
T, SourceLocation CC,
         DiagnoseImpCast(*this, E, T, CC, diag::warn_impcast_float_precision);
       }
       // ... or possibly if we're increasing rank, too
-      else if (Order < 0) {
+      else if (Order == FRCR_Lesser) {
         if (SourceMgr.isInSystemMacro(CC))
           return;
 
         DiagnoseImpCast(*this, E, T, CC, diag::warn_impcast_double_promotion);
       }
+      assert(Order != FRCR_Unordered &&
+             "Unordered floating types are not allowed.");
----------------
jcranmer-intel wrote:

Maybe mention "in implicit conversion" in the message here?

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

Reply via email to