]> granicus.if.org Git - clang/commitdiff
Pacify gcc's -Wreturn-type
authorMatt Beaumont-Gay <matthewbg@google.com>
Thu, 2 Feb 2012 18:35:35 +0000 (18:35 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Thu, 2 Feb 2012 18:35:35 +0000 (18:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149610 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaExpr.cpp

index 3862286f9cc8ec9d9490c23ce06a0c3b7d6f33be..87dc760902553cb1ca7cd9b608b38a3a289e6597 100644 (file)
@@ -9495,6 +9495,7 @@ bool IsPotentiallyEvaluatedContext(Sema &SemaRef) {
       // containing expression is used.
       return false;
   }
+  llvm_unreachable("Invalid context");
 }
 
 /// \brief Mark a function referenced, and check whether it is odr-used