summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/Expr.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2014-07-26 00:47:13 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2014-07-26 00:47:13 +0000
commita0cbfc9d752ab440564789b993854bd12cda5b8f (patch)
tree8621e69f3fdf52c349cdfc7516abfd04c0f93a2b /clang/lib/AST/Expr.cpp
parent8b2e7bfac1aed07d5992644288c50ab092114f6c (diff)
downloadbcm5719-llvm-a0cbfc9d752ab440564789b993854bd12cda5b8f.tar.gz
bcm5719-llvm-a0cbfc9d752ab440564789b993854bd12cda5b8f.zip
Improve -UNDEBUG binary size. We don't need a different assert fail message for
each different enum value here. llvm-svn: 213996
Diffstat (limited to 'clang/lib/AST/Expr.cpp')
-rw-r--r--clang/lib/AST/Expr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/AST/Expr.cpp b/clang/lib/AST/Expr.cpp
index 5f559b7e5ce..1e52e535329 100644
--- a/clang/lib/AST/Expr.cpp
+++ b/clang/lib/AST/Expr.cpp
@@ -195,12 +195,12 @@ SourceLocation Expr::getExprLoc() const {
case Stmt::NoStmtClass: llvm_unreachable("statement without class");
#define ABSTRACT_STMT(type)
#define STMT(type, base) \
- case Stmt::type##Class: llvm_unreachable(#type " is not an Expr"); break;
+ case Stmt::type##Class: break;
#define EXPR(type, base) \
case Stmt::type##Class: return getExprLocImpl<type>(this, &type::getExprLoc);
#include "clang/AST/StmtNodes.inc"
}
- llvm_unreachable("unknown statement kind");
+ llvm_unreachable("unknown expression kind");
}
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud