[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)

Oliver Hunt via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 24 11:08:01 PDT 2025


================
@@ -2845,6 +2866,41 @@ bool Sema::IsComplexPromotion(QualType FromType, QualType ToType) {
                         ToComplex->getElementType());
 }
 
+bool Sema::IsOverflowBehaviorTypePromotion(QualType FromType, QualType ToType) {
----------------
ojhunt wrote:

Wait, are you saying that it retained the change to arithmetic operators to break promotion?

https://github.com/llvm/llvm-project/pull/148914


More information about the cfe-commits mailing list