mstorsjo updated this revision to Diff 337366. mstorsjo added a comment. Moved unreachable to outside of switch
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D100447/new/ https://reviews.llvm.org/D100447 Files: lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp Index: lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp =================================================================== --- lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp +++ lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp @@ -1439,7 +1439,8 @@ g_get_dynamic_class_info2_name); return m_objc_copyRealizedClassList_helper.utility_function.get(); } - }; + } + llvm_unreachable("Unexpected helper"); } lldb::addr_t & @@ -1450,6 +1451,7 @@ case objc_copyRealizedClassList: return m_objc_copyRealizedClassList_helper.args; } + llvm_unreachable("Unexpected helper"); } AppleObjCRuntimeV2::DynamicClassInfoExtractor::Helper
Index: lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp =================================================================== --- lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp +++ lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp @@ -1439,7 +1439,8 @@ g_get_dynamic_class_info2_name); return m_objc_copyRealizedClassList_helper.utility_function.get(); } - }; + } + llvm_unreachable("Unexpected helper"); } lldb::addr_t & @@ -1450,6 +1451,7 @@ case objc_copyRealizedClassList: return m_objc_copyRealizedClassList_helper.args; } + llvm_unreachable("Unexpected helper"); } AppleObjCRuntimeV2::DynamicClassInfoExtractor::Helper
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits