summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/LiteralSupport.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2011-09-23 05:06:16 +0000
committerDavid Blaikie <dblaikie@gmail.com>2011-09-23 05:06:16 +0000
commit83d382b1cad133cb163a68dd7149fae2802275e1 (patch)
tree20f63870b2fa8c4a5b49076275bc8b60224f0edc /clang/lib/Lex/LiteralSupport.cpp
parent42fe6bd5f230d4c88377e24ace7a226c178dd2b4 (diff)
downloadbcm5719-llvm-83d382b1cad133cb163a68dd7149fae2802275e1.tar.gz
bcm5719-llvm-83d382b1cad133cb163a68dd7149fae2802275e1.zip
Switch assert(0/false) llvm_unreachable.
llvm-svn: 140367
Diffstat (limited to 'clang/lib/Lex/LiteralSupport.cpp')
-rw-r--r--clang/lib/Lex/LiteralSupport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/LiteralSupport.cpp b/clang/lib/Lex/LiteralSupport.cpp
index 986a08a3ce7..4496834defd 100644
--- a/clang/lib/Lex/LiteralSupport.cpp
+++ b/clang/lib/Lex/LiteralSupport.cpp
@@ -30,7 +30,7 @@ static int HexDigitValue(char C) {
static unsigned getCharWidth(tok::TokenKind kind, const TargetInfo &Target) {
switch (kind) {
- default: assert(0 && "Unknown token type!");
+ default: llvm_unreachable("Unknown token type!");
case tok::char_constant:
case tok::string_literal:
case tok::utf8_string_literal:
OpenPOWER on IntegriCloud