[Lldb-commits] [lldb] a5881e8 - [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 Aug 11 14:35:55 PDT 2022


Author: Martin Storsjö
Date: 2022-08-12T00:35:32+03:00
New Revision: a5881e8a810bac74af2efcdcf12c741d52a1970a

URL: https://github.com/llvm/llvm-project/commit/a5881e8a810bac74af2efcdcf12c741d52a1970a
DIFF: https://github.com/llvm/llvm-project/commit/a5881e8a810bac74af2efcdcf12c741d52a1970a.diff

LOG: [lldb] Silence a GCC warning about missing returns after a fully covered switch. NFC.

Added: 
    

Modified: 
    lldb/tools/lldb-test/lldb-test.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/tools/lldb-test/lldb-test.cpp b/lldb/tools/lldb-test/lldb-test.cpp
index c6f9463dbb6de..466e082534e58 100644
--- a/lldb/tools/lldb-test/lldb-test.cpp
+++ b/lldb/tools/lldb-test/lldb-test.cpp
@@ -879,6 +879,7 @@ static Mangled::NamePreference opts::symtab::getNamePreference() {
   case ManglingPreference::MangledWithoutArguments:
     return Mangled::ePreferDemangledWithoutArguments;
   }
+  llvm_unreachable("Fully covered switch above!");
 }
 
 int opts::symtab::handleSymtabCommand(Debugger &Dbg) {


        


More information about the lldb-commits mailing list