From 83d382b1cad133cb163a68dd7149fae2802275e1 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Fri, 23 Sep 2011 05:06:16 +0000 Subject: Switch assert(0/false) llvm_unreachable. llvm-svn: 140367 --- clang/lib/Lex/LiteralSupport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Lex/LiteralSupport.cpp') 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: -- cgit v1.2.3