diff options
author | Matt Beaumont-Gay <matthewbg@google.com> | 2012-01-31 18:59:25 +0000 |
---|---|---|
committer | Matt Beaumont-Gay <matthewbg@google.com> | 2012-01-31 18:59:25 +0000 |
commit | 56e68b712931e66612b01ecf0af27a05e5d12648 (patch) | |
tree | db812564deb4ed5dd9941db0971df3e6628f4bed /lib/AST/Expr.cpp | |
parent | 29254f4dd114fe2dd5c4e7a261ebea941973ad3d (diff) |
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
Diffstat (limited to 'lib/AST/Expr.cpp')
-rw-r--r-- | lib/AST/Expr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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() { |