diff options
author | David Blaikie <dblaikie@gmail.com> | 2011-09-23 05:06:16 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2011-09-23 05:06:16 +0000 |
commit | b219cfc4d75f0a03630b7c4509ef791b7e97b2c8 (patch) | |
tree | 2b708dc00bedcc6a6204d29c915ac7fce8fb028f /lib/CodeGen/CGDebugInfo.cpp | |
parent | c535d9730e11ca335790359bfbd4600be71c5410 (diff) |
Switch assert(0/false) llvm_unreachable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140367 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index 89e14bafd0..04bf996acd 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/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: |