[Lldb-commits] [lldb] 39c4ac1 - [lldb] Silence a GCC warning about missing returns after a fully covered switch. NFC.
Martin Storsjö via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 9 04:40:04 PDT 2022
Author: Martin Storsjö
Date: 2022-06-09T14:39:33+03:00
New Revision: 39c4ac140d1ee67d152c990f5d16a8df98155cbc
URL: https://github.com/llvm/llvm-project/commit/39c4ac140d1ee67d152c990f5d16a8df98155cbc
DIFF: https://github.com/llvm/llvm-project/commit/39c4ac140d1ee67d152c990f5d16a8df98155cbc.diff
LOG: [lldb] Silence a GCC warning about missing returns after a fully covered switch. NFC.
Added:
Modified:
lldb/source/Target/Target.cpp
Removed:
################################################################################
diff --git a/lldb/source/Target/Target.cpp b/lldb/source/Target/Target.cpp
index ca9754d40af0..34dea43a64dd 100644
--- a/lldb/source/Target/Target.cpp
+++ b/lldb/source/Target/Target.cpp
@@ -3466,6 +3466,7 @@ void Target::PrintDummySignals(Stream &strm, Args &signal_args) {
case eLazyBoolYes: return "true ";
case eLazyBoolNo: return "false ";
}
+ llvm_unreachable("Fully covered switch above!");
};
size_t num_args = signal_args.GetArgumentCount();
for (const auto &elem : m_dummy_signals) {
More information about the lldb-commits
mailing list