From 56e68b712931e66612b01ecf0af27a05e5d12648 Mon Sep 17 00:00:00 2001 From: Matt Beaumont-Gay Date: Tue, 31 Jan 2012 18:59:25 +0000 Subject: [PATCH] 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 --- lib/AST/Expr.cpp | 1 + 1 file changed, 1 insertion(+) 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() { -- 2.40.0