================
@@ -4843,7 +4843,7 @@ Sema::PerformImplicitConversion(Expr *From, QualType 
ToType,
                  .get();
       break;
     case ICK_Floating_Integral:
-      if (ToType->isRealFloatingType())
+      if (ToType->isRealFloatingType() || ToType->hasFloatingRepresentation())
----------------
bogner wrote:

I think `isRealFloatingType` is redundant now. `hasFloatingRepresentation` will 
return true in all cases that it does. I guess this also means that complex 
types will go into this case now and they didn't before - does that matter?

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

Reply via email to