This revision was automatically updated to reflect the committed changes. Closed by commit rGae2aa2d21b24: [lldb] Silence GCC warnings about missing returns after fully covered switches. (authored by mstorsjo).
Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D123203/new/ https://reviews.llvm.org/D123203 Files: lldb/source/Breakpoint/Breakpoint.cpp lldb/source/Core/DebuggerEvents.cpp lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp Index: lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp =================================================================== --- lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp +++ lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp @@ -102,6 +102,7 @@ case BitOffset: return 10; } + llvm_unreachable("Fully covered switch above!"); }; auto createError = [&](const char *expected_value_message) { Index: lldb/source/Core/DebuggerEvents.cpp =================================================================== --- lldb/source/Core/DebuggerEvents.cpp +++ lldb/source/Core/DebuggerEvents.cpp @@ -52,6 +52,7 @@ case Type::Error: return "error"; } + llvm_unreachable("Fully covered switch above!"); } void DiagnosticEventData::Dump(Stream *s) const { Index: lldb/source/Breakpoint/Breakpoint.cpp =================================================================== --- lldb/source/Breakpoint/Breakpoint.cpp +++ lldb/source/Breakpoint/Breakpoint.cpp @@ -1026,6 +1026,7 @@ case eBreakpointEventTypeThreadChanged: return "thread changed"; case eBreakpointEventTypeAutoContinueChanged: return "autocontinue changed"; }; + llvm_unreachable("Fully covered switch above!"); } Log *Breakpoint::BreakpointEventData::GetLogChannel() {
Index: lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp =================================================================== --- lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp +++ lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp @@ -102,6 +102,7 @@ case BitOffset: return 10; } + llvm_unreachable("Fully covered switch above!"); }; auto createError = [&](const char *expected_value_message) { Index: lldb/source/Core/DebuggerEvents.cpp =================================================================== --- lldb/source/Core/DebuggerEvents.cpp +++ lldb/source/Core/DebuggerEvents.cpp @@ -52,6 +52,7 @@ case Type::Error: return "error"; } + llvm_unreachable("Fully covered switch above!"); } void DiagnosticEventData::Dump(Stream *s) const { Index: lldb/source/Breakpoint/Breakpoint.cpp =================================================================== --- lldb/source/Breakpoint/Breakpoint.cpp +++ lldb/source/Breakpoint/Breakpoint.cpp @@ -1026,6 +1026,7 @@ case eBreakpointEventTypeThreadChanged: return "thread changed"; case eBreakpointEventTypeAutoContinueChanged: return "autocontinue changed"; }; + llvm_unreachable("Fully covered switch above!"); } Log *Breakpoint::BreakpointEventData::GetLogChannel() {
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits