Skip to content

Commit 55551da

Browse files
[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()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~
1 parent 575fad2 commit 55551da

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4275,6 +4275,8 @@ TypeSystemClang::GetTypeClass(lldb::opaque_compiler_type_t type) {
42754275
break;
42764276
case clang::Type::HLSLInlineSpirv:
42774277
break;
4278+
case clang::Type::SubstBuiltinTemplatePack:
4279+
break;
42784280
}
42794281
// We don't know hot to display this type...
42804282
return lldb::eTypeClassOther;
@@ -5139,6 +5141,8 @@ lldb::Encoding TypeSystemClang::GetEncoding(lldb::opaque_compiler_type_t type,
51395141
break;
51405142
case clang::Type::HLSLInlineSpirv:
51415143
break;
5144+
case clang::Type::SubstBuiltinTemplatePack:
5145+
break;
51425146
}
51435147
count = 0;
51445148
return lldb::eEncodingInvalid;
@@ -5307,6 +5311,8 @@ lldb::Format TypeSystemClang::GetFormat(lldb::opaque_compiler_type_t type) {
53075311
break;
53085312
case clang::Type::HLSLInlineSpirv:
53095313
break;
5314+
case clang::Type::SubstBuiltinTemplatePack:
5315+
break;
53105316
}
53115317
// We don't know hot to display this type...
53125318
return lldb::eFormatBytes;

0 commit comments

Comments
 (0)