[lldb] Silence GCC warnings about missing returns after fully covered switches. NFC.
authorMartin Storsjö <martin@martin.st>
Wed, 6 Apr 2022 11:09:22 +0000 (14:09 +0300)
committerMartin Storsjö <martin@martin.st>
Wed, 6 Apr 2022 19:50:07 +0000 (22:50 +0300)
commitae2aa2d21b24a912314e618d1ceb8e036449b0b1
tree2dd845de41cec152b883628b0ba922747fb79055
parente546bbfda0ab91cf78c096d8c035851cc7c3b9f3
[lldb] Silence GCC warnings about missing returns after fully covered switches. NFC.

This silences warnings like this:

lldb/source/Core/DebuggerEvents.cpp: In member function ‘llvm::StringRef lldb_private::DiagnosticEventData::GetPrefix() const’:
lldb/source/Core/DebuggerEvents.cpp:55:1: warning: control reaches end of non-void function [-Wreturn-type]
   55 | }

Differential Revision: https://reviews.llvm.org/D123203
lldb/source/Breakpoint/Breakpoint.cpp
lldb/source/Core/DebuggerEvents.cpp
lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp