================
@@ -2427,9 +2438,16 @@ static bool IsStandardConversion(Sema &S, Expr* From,
QualType ToType,
// Complex promotion (Clang extension)
SCS.Second = ICK_Complex_Promotion;
FromType = ToType.getUnqualifiedType();
+ } else if (S.IsOverflowBehaviorTypePromotion(FromType, ToType)) {
+ // OverflowBehaviorType promotions
+ SCS.Second = ICK_Integral_Promotion;
+ FromType = ToType.getUnqualifiedType();
----------------
JustinStitt wrote:
As per the documentation and previously agreed upon semantics, these overflow
behavior types have special promotion properties. We do this to preserve
bitwidths when it matters.
https://github.com/llvm/llvm-project/pull/148914
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits