Skip to content

Commit 9df19ce

Browse files
committed
Add uncovered enums in switches caused by 9434c08
These are probably actually unreachable - perhaps an lldb developer would be interested in rephrasing this change to move the new cases into some unreachable/unsupported bucket, rather than my half-hearted guess at what the desired behavior would be (completely untested, because they're probably untestable/unreachable - maybe debugging from modules?)
1 parent f2a87b0 commit 9df19ce

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4097,6 +4097,8 @@ TypeSystemClang::GetTypeClass(lldb::opaque_compiler_type_t type) {
40974097
return lldb::eTypeClassArray;
40984098
case clang::Type::DependentSizedArray:
40994099
return lldb::eTypeClassArray;
4100+
case clang::Type::ArrayParameter:
4101+
return lldb::eTypeClassArray;
41004102
case clang::Type::DependentSizedExtVector:
41014103
return lldb::eTypeClassVector;
41024104
case clang::Type::DependentVector:
@@ -4776,6 +4778,7 @@ lldb::Encoding TypeSystemClang::GetEncoding(lldb::opaque_compiler_type_t type,
47764778

47774779
case clang::Type::IncompleteArray:
47784780
case clang::Type::VariableArray:
4781+
case clang::Type::ArrayParameter:
47794782
break;
47804783

47814784
case clang::Type::ConstantArray:
@@ -5109,6 +5112,7 @@ lldb::Format TypeSystemClang::GetFormat(lldb::opaque_compiler_type_t type) {
51095112

51105113
case clang::Type::IncompleteArray:
51115114
case clang::Type::VariableArray:
5115+
case clang::Type::ArrayParameter:
51125116
break;
51135117

51145118
case clang::Type::ConstantArray:

0 commit comments

Comments
 (0)