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; } } _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits