From: Aaron Ballman <aaron@aaronballman.com>
Date: Wed, 6 Nov 2013 18:15:02 +0000 (+0000)
Subject: Silencing some MSVC warnings about not all control paths returning a value when they... 
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0de7ba67f896a01ac1d99821a5f2b31c5fb7ccb4;p=clang

Silencing some MSVC warnings about not all control paths returning a value when they actually do.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194156 91177308-0d34-0410-b5e6-96231b3b80d8
---

diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp
index 835938ab57..2412facf05 100644
--- a/lib/AST/ExprConstant.cpp
+++ b/lib/AST/ExprConstant.cpp
@@ -652,6 +652,7 @@ namespace {
       case EM_ConstantFold:
         return false;
       }
+      llvm_unreachable("Missed EvalMode case");
     }
 
     /// Note that we have had a side-effect, and determine whether we should
@@ -677,6 +678,7 @@ namespace {
       case EM_IgnoreSideEffects:
         return false;
       }
+      llvm_unreachable("Missed EvalMode case");
     }
   };