Skip to content

Commit 76826b0

Browse files
committed
Add relevant logic to lldb to eliminate warnings and try to fix failed tests
1 parent 2906b88 commit 76826b0

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
@@ -2566,6 +2566,7 @@ RemoveWrappingTypes(QualType type, ArrayRef<clang::Type::TypeClass> mask = {}) {
25662566
case clang::Type::TypeOf:
25672567
case clang::Type::TypeOfExpr:
25682568
case clang::Type::Using:
2569+
case clang::Type::PredefinedSugar:
25692570
type = type->getLocallyUnqualifiedSingleStepDesugaredType();
25702571
break;
25712572
default:
@@ -4141,6 +4142,7 @@ TypeSystemClang::GetTypeClass(lldb::opaque_compiler_type_t type) {
41414142
case clang::Type::TypeOf:
41424143
case clang::Type::TypeOfExpr:
41434144
case clang::Type::Using:
4145+
case clang::Type::PredefinedSugar:
41444146
llvm_unreachable("Handled in RemoveWrappingTypes!");
41454147
case clang::Type::UnaryTransform:
41464148
break;
@@ -4851,6 +4853,7 @@ lldb::Encoding TypeSystemClang::GetEncoding(lldb::opaque_compiler_type_t type,
48514853
case clang::Type::TypeOf:
48524854
case clang::Type::TypeOfExpr:
48534855
case clang::Type::Using:
4856+
case clang::Type::PredefinedSugar:
48544857
llvm_unreachable("Handled in RemoveWrappingTypes!");
48554858

48564859
case clang::Type::UnaryTransform:
@@ -5152,6 +5155,7 @@ lldb::Format TypeSystemClang::GetFormat(lldb::opaque_compiler_type_t type) {
51525155
case clang::Type::TypeOf:
51535156
case clang::Type::TypeOfExpr:
51545157
case clang::Type::Using:
5158+
case clang::Type::PredefinedSugar:
51555159
llvm_unreachable("Handled in RemoveWrappingTypes!");
51565160
case clang::Type::UnaryTransform:
51575161
break;

0 commit comments

Comments
 (0)