File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
lldb/source/Plugins/TypeSystem/Swift Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,9 @@ add_lldb_library(lldbPluginTypeSystemSwift PLUGIN
13
13
LINK_COMPONENTS
14
14
Support
15
15
)
16
+
17
+ # Enforce synchronization between Swift compiler updates and LLDB via PR testing.
18
+ check_cxx_compiler_flag ("-Werror=switch" CXX_SUPPORTS_ERROR_SWITCH )
19
+ if (CXX_SUPPORTS_ERROR_SWITCH )
20
+ target_compile_options (lldbPluginTypeSystemSwift PRIVATE -Werror=switch )
21
+ endif ()
Original file line number Diff line number Diff line change @@ -4858,6 +4858,7 @@ static SwiftASTContext::TypeOrDecl DeclToTypeOrDecl(swift::Decl *decl) {
4858
4858
case swift::DeclKind::Module:
4859
4859
case swift::DeclKind::Missing:
4860
4860
case swift::DeclKind::MissingMember:
4861
+ case swift::DeclKind::Using:
4861
4862
break ;
4862
4863
4863
4864
case swift::DeclKind::InfixOperator:
You can’t perform that action at this time.
0 commit comments