[Lldb-commits] [lldb] r267931 - Used llvm_unreached to quite a VC++ compiler warning.

Adrian McCarthy via lldb-commits lldb-commits at lists.llvm.org
Thu Apr 28 13:14:45 PDT 2016


Author: amccarth
Date: Thu Apr 28 15:14:44 2016
New Revision: 267931

URL: http://llvm.org/viewvc/llvm-project?rev=267931&view=rev
Log:
Used llvm_unreached to quite a VC++ compiler warning.

Differential Revision: http://reviews.llvm.org/D19489

Modified:
    lldb/trunk/source/Expression/DiagnosticManager.cpp

Modified: lldb/trunk/source/Expression/DiagnosticManager.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/DiagnosticManager.cpp?rev=267931&r1=267930&r2=267931&view=diff
==============================================================================
--- lldb/trunk/source/Expression/DiagnosticManager.cpp (original)
+++ lldb/trunk/source/Expression/DiagnosticManager.cpp Thu Apr 28 15:14:44 2016
@@ -8,6 +8,9 @@
 //===----------------------------------------------------------------------===//
 
 #include "lldb/Expression/DiagnosticManager.h"
+
+#include "llvm/Support/ErrorHandling.h"
+
 #include "lldb/Core/Log.h"
 #include "lldb/Core/StreamString.h"
 
@@ -45,6 +48,7 @@ StringForSeverity(DiagnosticSeverity sev
         case lldb_private::eDiagnosticSeverityRemark:
             return "";
     }
+    llvm_unreachable("switch needs another case for DiagnosticSeverity enum");
 }
 
 std::string




More information about the lldb-commits mailing list