diff --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp --- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp +++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp @@ -1439,7 +1439,9 @@ g_get_dynamic_class_info2_name); return m_objc_copyRealizedClassList_helper.utility_function.get(); } - }; + default: + llvm_unreachable("Unexpected helper"); + } } lldb::addr_t & @@ -1449,6 +1451,8 @@ return m_gdb_objc_realized_classes_helper.args; case objc_copyRealizedClassList: return m_objc_copyRealizedClassList_helper.args; + default: + llvm_unreachable("Unexpected helper"); } }