]> granicus.if.org Git - clang/commitdiff
Pacify gcc's -Wreturn-type.
authorMatt Beaumont-Gay <matthewbg@google.com>
Tue, 31 Jan 2012 18:59:25 +0000 (18:59 +0000)
committerMatt Beaumont-Gay <matthewbg@google.com>
Tue, 31 Jan 2012 18:59:25 +0000 (18:59 +0000)
A separate unreachable message will make it easier to debug if either of the
unreachables is reached.

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

lib/AST/Expr.cpp

index 337a31a225393dc3fdc896fd3f2311f00848e365..fc0b9a7a9408b7fc1c586effe1bd4621849dcb3e 100644 (file)
@@ -2178,6 +2178,7 @@ Expr::CanThrowResult Expr::CanThrow(ASTContext &C) const {
   case NoStmtClass:
     llvm_unreachable("Invalid class for expression");
   }
+  llvm_unreachable("Bogus StmtClass");
 }
 
 Expr* Expr::IgnoreParens() {