This revision was automatically updated to reflect the committed changes.
Closed by commit rL267931: Used llvm_unreached to quite a VC++ compiler 
warning. (authored by amccarth).

Changed prior to commit:
  http://reviews.llvm.org/D19489?vs=54882&id=55475#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D19489

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

Index: lldb/trunk/source/Expression/DiagnosticManager.cpp
===================================================================
--- lldb/trunk/source/Expression/DiagnosticManager.cpp
+++ lldb/trunk/source/Expression/DiagnosticManager.cpp
@@ -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 @@
         case lldb_private::eDiagnosticSeverityRemark:
             return "";
     }
+    llvm_unreachable("switch needs another case for DiagnosticSeverity enum");
 }
 
 std::string


Index: lldb/trunk/source/Expression/DiagnosticManager.cpp
===================================================================
--- lldb/trunk/source/Expression/DiagnosticManager.cpp
+++ lldb/trunk/source/Expression/DiagnosticManager.cpp
@@ -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 @@
         case lldb_private::eDiagnosticSeverityRemark:
             return "";
     }
+    llvm_unreachable("switch needs another case for DiagnosticSeverity enum");
 }
 
 std::string
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to