[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)
    Michael Buch via lldb-commits 
    lldb-commits at lists.llvm.org
       
    Mon Feb 17 03:23:32 PST 2025
    
    
  
================
@@ -119,7 +119,7 @@ lldb_private::formatters::LibcxxStdSpanSyntheticFrontEnd::Update() {
     } else if (auto arg =
                    m_backend.GetCompilerType().GetIntegralTemplateArgument(1)) {
 
-      m_num_elements = arg->value.getLimitedValue();
+      m_num_elements = arg->value.GetAPSInt().getLimitedValue();
----------------
Michael137 wrote:
Since `Scalar` default initializes both float and integer members, i removed the `isInt` call from prior revisions here
https://github.com/llvm/llvm-project/pull/127206
    
    
More information about the lldb-commits
mailing list