diff options
author | David Blaikie <dblaikie@gmail.com> | 2011-09-23 20:26:49 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2011-09-23 20:26:49 +0000 |
commit | eb2d1f1c88836bd5382e5d7aa8f6b85148a88b27 (patch) | |
tree | 933295d0f71ec58a77f55d5e1046ec5efc861253 /lib/AST/ASTContext.cpp | |
parent | c193dd84414c32b7c66f5b68176401665c0d2301 (diff) |
Removing a bunch of dead returns/breaks after llvm_unreachables.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140407 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r-- | lib/AST/ASTContext.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index de77cb66cf..5e0143dc00 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -3219,7 +3219,6 @@ ASTContext::getCanonicalTemplateArgument(const TemplateArgument &Arg) const { // Silence GCC warning llvm_unreachable("Unhandled template argument kind"); - return TemplateArgument(); } NestedNameSpecifier * @@ -4919,7 +4918,6 @@ CanQualType ASTContext::getFromTargetType(unsigned Type) const { } llvm_unreachable("Unhandled TargetInfo::IntType value"); - return CanQualType(); } //===----------------------------------------------------------------------===// @@ -5749,13 +5747,11 @@ QualType ASTContext::mergeTypes(QualType LHS, QualType RHS, #define DEPENDENT_TYPE(Class, Base) case Type::Class: #include "clang/AST/TypeNodes.def" llvm_unreachable("Non-canonical and dependent types shouldn't get here"); - return QualType(); case Type::LValueReference: case Type::RValueReference: case Type::MemberPointer: llvm_unreachable("C++ should never be in mergeTypes"); - return QualType(); case Type::ObjCInterface: case Type::IncompleteArray: @@ -5763,7 +5759,6 @@ QualType ASTContext::mergeTypes(QualType LHS, QualType RHS, case Type::FunctionProto: case Type::ExtVector: llvm_unreachable("Types are eliminated above"); - return QualType(); case Type::Pointer: { @@ -6015,7 +6010,6 @@ QualType ASTContext::getCorrespondingUnsignedType(QualType T) { return UnsignedInt128Ty; default: llvm_unreachable("Unexpected signed integer type"); - return QualType(); } } @@ -6476,7 +6470,6 @@ MangleContext *ASTContext::createMangleContext() { return createMicrosoftMangleContext(*this, getDiagnostics()); } llvm_unreachable("Unsupported ABI"); - return 0; } CXXABI::~CXXABI() {} |