[Lldb-commits] [lldb] 55551da - [lldb] Add missing case statements for SubstBuiltinTemplatePack (#154606)

via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 20 14:53:31 PDT 2025


Author: Kazu Hirata
Date: 2025-08-20T14:53:28-07:00
New Revision: 55551da200bec5b92653245d742032bf934b1926

URL: https://github.com/llvm/llvm-project/commit/55551da200bec5b92653245d742032bf934b1926
DIFF: https://github.com/llvm/llvm-project/commit/55551da200bec5b92653245d742032bf934b1926.diff

LOG: [lldb] Add missing case statements for SubstBuiltinTemplatePack (#154606)

This patch fixes:

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4148:11:
error: enumeration value 'SubstBuiltinTemplatePack' not handled in
switch [-Werror,-Wswitch]
4148 |   switch (qual_type->getTypeClass()) {
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:4852:11:
error: enumeration value 'SubstBuiltinTemplatePack' not handled in
switch [-Werror,-Wswitch]
4852 |   switch (qual_type->getTypeClass()) {
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~

lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:5153:11:
error: enumeration value 'SubstBuiltinTemplatePack' not handled in
switch [-Werror,-Wswitch]
5153 |   switch (qual_type->getTypeClass()) {
      |           ^~~~~~~~~~~~~~~~~~~~~~~~~

Added: 
    

Modified: 
    lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
index c4a917f59fb88..39aacdb58e694 100644
--- a/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
+++ b/lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
@@ -4275,6 +4275,8 @@ TypeSystemClang::GetTypeClass(lldb::opaque_compiler_type_t type) {
     break;
   case clang::Type::HLSLInlineSpirv:
     break;
+  case clang::Type::SubstBuiltinTemplatePack:
+    break;
   }
   // We don't know hot to display this type...
   return lldb::eTypeClassOther;
@@ -5139,6 +5141,8 @@ lldb::Encoding TypeSystemClang::GetEncoding(lldb::opaque_compiler_type_t type,
     break;
   case clang::Type::HLSLInlineSpirv:
     break;
+  case clang::Type::SubstBuiltinTemplatePack:
+    break;
   }
   count = 0;
   return lldb::eEncodingInvalid;
@@ -5307,6 +5311,8 @@ lldb::Format TypeSystemClang::GetFormat(lldb::opaque_compiler_type_t type) {
     break;
   case clang::Type::HLSLInlineSpirv:
     break;
+  case clang::Type::SubstBuiltinTemplatePack:
+    break;
   }
   // We don't know hot to display this type...
   return lldb::eFormatBytes;


        


More information about the lldb-commits mailing list