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/CodeGen/CGDebugInfo.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp') diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp index 89e14bafd0b..04bf996acde 100644 --- a/clang/lib/CodeGen/CGDebugInfo.cpp +++ b/clang/lib/CodeGen/CGDebugInfo.cpp @@ -290,16 +290,16 @@ llvm::DIType CGDebugInfo::CreateType(const BuiltinType *BT) { const char *BTName = NULL; switch (BT->getKind()) { case BuiltinType::Dependent: - assert(0 && "Unexpected builtin type Dependent"); + llvm_unreachable("Unexpected builtin type Dependent"); return llvm::DIType(); case BuiltinType::Overload: - assert(0 && "Unexpected builtin type Overload"); + llvm_unreachable("Unexpected builtin type Overload"); return llvm::DIType(); case BuiltinType::BoundMember: - assert(0 && "Unexpected builtin type BoundMember"); + llvm_unreachable("Unexpected builtin type BoundMember"); return llvm::DIType(); case BuiltinType::UnknownAny: - assert(0 && "Unexpected builtin type UnknownAny"); + llvm_unreachable("Unexpected builtin type UnknownAny"); return llvm::DIType(); case BuiltinType::NullPtr: return DBuilder. @@ -1543,7 +1543,7 @@ llvm::DIType CGDebugInfo::CreateTypeNode(QualType Ty, #define NON_CANONICAL_TYPE(Class, Base) #define DEPENDENT_TYPE(Class, Base) case Type::Class: #include "clang/AST/TypeNodes.def" - assert(false && "Dependent types cannot show up in debug information"); + llvm_unreachable("Dependent types cannot show up in debug information"); case Type::ExtVector: case Type::Vector: -- cgit v1.2.3