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

Adrian McCarthy via lldb-commits lldb-commits at lists.llvm.org
Mon Apr 25 11:55:06 PDT 2016


amccarth created this revision.
amccarth added a reviewer: spyffe.
amccarth added a subscriber: lldb-commits.

http://reviews.llvm.org/D19489

Files:
  source/Expression/DiagnosticManager.cpp

Index: source/Expression/DiagnosticManager.cpp
===================================================================
--- source/Expression/DiagnosticManager.cpp
+++ 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.54882.patch
Type: text/x-patch
Size: 665 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20160425/c617d12c/attachment.bin>


More information about the lldb-commits mailing list