[clang] [Clang][C++23] Core language changes from P1467R9 extended floating-point types and standard names. (PR #78503)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 31 03:53:52 PST 2024
================
@@ -7444,9 +7444,11 @@ isArithmeticArgumentPromotion(Sema &S, const ImplicitCastExpr *ICE) {
From = VecTy->getElementType();
if (const auto *VecTy = To->getAs<ExtVectorType>())
To = VecTy->getElementType();
- // It's a floating promotion if the source type is a lower rank.
- return ICE->getCastKind() == CK_FloatingCast &&
- S.Context.getFloatingTypeOrder(From, To) < 0;
+ // It's a floating promotion if the source type is float.
+ // [7.3.8p1][conv.fpprom] https://eel.is/c++draft/conv.fpprom
----------------
cor3ntin wrote:
We usually quote the relevant wording rather than adding links
https://github.com/llvm/llvm-project/pull/78503
More information about the cfe-commits
mailing list