[Lldb-commits] [lldb] [lldb][AArch64] Do not crash if NT_ARM_TLS is missing (PR #106478)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Aug 29 00:31:52 PDT 2024


================
@@ -254,9 +254,10 @@ RegisterInfoPOSIX_arm64::RegisterInfoPOSIX_arm64(
       if (m_opt_regsets.AllSet(eRegsetMaskMTE))
         AddRegSetMTE();
 
-      // The TLS set always contains tpidr but only has tpidr2 when SME is
-      // present.
-      AddRegSetTLS(m_opt_regsets.AllSet(eRegsetMaskSSVE));
+      if (m_opt_regsets.AllSet(eRegsetMaskTLS))
----------------
DavidSpickett wrote:

Add braces here {} as the body is now >1 line.

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


More information about the lldb-commits mailing list