[llvm] [clang-tools-extra] [clang] [clang] Ensure fixed point conversions work in C++ (PR #68344)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 15 16:31:27 PST 2023
================
@@ -2192,6 +2194,9 @@ static bool IsStandardConversion(Sema &S, Expr* From, QualType ToType,
From->isIntegerConstantExpr(S.getASTContext())) {
SCS.Second = ICK_Compatible_Conversion;
FromType = ToType;
+ } else if (ToType->isFixedPointType() || FromType->isFixedPointType()) {
+ SCS.Second = ICK_Fixed_Point_Conversion;
----------------
PiJoules wrote:
Yeah relating to the block in SemaExprCXX seemed easiest to me.
https://github.com/llvm/llvm-project/pull/68344
More information about the cfe-commits
mailing list