[Lldb-commits] [PATCH] D19489: Use llvm_unreachable to quiet a VC++ compiler warning.

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


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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19489.55475.patch
Type: text/x-patch
Size: 698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160428/60d0d9ea/attachment.bin>


More information about the lldb-commits mailing list