[Lldb-commits] [clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)
    Oliver Hunt via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Wed Sep 24 11:49:48 PDT 2025
    
    
  
================
@@ -9744,6 +9744,16 @@ static void DiagnoseNarrowingInInitList(Sema &S,
 
   case NK_Constant_Narrowing: {
     // A constant value was narrowed.
+
+    // Overflow behavior destination types with a 'wrap' kind can elide
----------------
ojhunt wrote:
Why is that a reasonable assumption?
This change in behavior means that an error by the developer is now silently ignored. Now an unintentional narrowing of the data is silently ignored.
https://github.com/llvm/llvm-project/pull/148914
    
    
More information about the lldb-commits
mailing list