[Lldb-commits] [PATCH] D100447: [lldb] Silence GCC warnings about control reaching the end of non-void functions. NFC.
Martin Storsjö via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Apr 13 23:07:29 PDT 2021
mstorsjo created this revision.
mstorsjo added reviewers: JDevlieghere, labath.
mstorsjo requested review of this revision.
Herald added a project: LLDB.
Also remove a superfluous semicolon after the braces for a switch
statement (that wasn't warned about).
Repository:
rG LLVM Github Monorepo
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,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");
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D100447.337340.patch
Type: text/x-patch
Size: 820 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20210414/617e8c4f/attachment.bin>
More information about the lldb-commits
mailing list