From: Matt Beaumont-Gay Date: Tue, 31 Jan 2012 18:59:25 +0000 (+0000) Subject: Pacify gcc's -Wreturn-type. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=56e68b712931e66612b01ecf0af27a05e5d12648;p=clang Pacify gcc's -Wreturn-type. 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 --- diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp index 337a31a225..fc0b9a7a94 100644 --- a/lib/AST/Expr.cpp +++ b/lib/AST/Expr.cpp @@ -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() {