[Lldb-commits] [lldb] [lldb][TypeSystemClang] Add support for floating point template argument constants (PR #127206)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Fri Feb 14 04:29:51 PST 2025


================
@@ -91,7 +91,7 @@ lldb::ChildCacheState GenericBitsetFrontEnd::Update() {
   size_t size = 0;
 
   if (auto arg = m_backend.GetCompilerType().GetIntegralTemplateArgument(0))
-    size = arg->value.getLimitedValue();
+    size = arg->value.getInt().getLimitedValue();
----------------
labath wrote:

Technically I think these need to check that the value is an integral type as a malicious could crash lldb by declaring a `std::bitset` with a floating point template argument.

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


More information about the lldb-commits mailing list