[Lldb-commits] [lldb] 8a6333e - [lldb/REPL] Fix unhandled switch case

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Thu May 21 23:22:38 PDT 2020


Author: Jonas Devlieghere
Date: 2020-05-21T23:22:17-07:00
New Revision: 8a6333ef38088b65224bc021a14eeeef0a123a29

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

LOG: [lldb/REPL] Fix unhandled switch case

Fix warning: enumeration value 'eExpressionThreadVanished' not handled
in switch [-Wswitch]

Added: 
    

Modified: 
    lldb/source/Expression/REPL.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Expression/REPL.cpp b/lldb/source/Expression/REPL.cpp
index 6c9792c6e837..a55fe09bdeb6 100644
--- a/lldb/source/Expression/REPL.cpp
+++ b/lldb/source/Expression/REPL.cpp
@@ -388,6 +388,11 @@ void REPL::IOHandlerInputComplete(IOHandler &io_handler, std::string &code) {
             error_sp->Printf("error: stopped for debug -- %s\n",
                              error.AsCString());
             break;
+          case lldb::eExpressionThreadVanished:
+            // Shoulnd't happen???
+            error_sp->Printf("error: expression thread vanished -- %s\n",
+                             error.AsCString());
+            break;
           }
         }
 


        


More information about the lldb-commits mailing list