Remove dead code.

llvm-svn: 150919
This commit is contained in:
Ahmed Charles 2012-02-19 11:57:29 +00:00
parent 636a3d618c
commit 289896d2f3
3 changed files with 2 additions and 19 deletions

View File

@ -2137,11 +2137,6 @@ static CachedProperties computeCachedProperties(const Type *T) {
}
llvm_unreachable("unhandled type class");
// C++ [basic.link]p8:
// Names not covered by these rules have no linkage.
NamedDecl::LinkageInfo LV(NoLinkage, DefaultVisibility, false);
return CachedProperties(LV, false);
}
/// \brief Determine the linkage of this type.

View File

@ -1204,14 +1204,10 @@ static void emitCatchDispatchBlock(CodeGenFunction &CGF,
if (nextIsEnd) {
CGF.Builder.restoreIP(savedIP);
return;
// Otherwise we need to emit and continue at that block.
} else {
CGF.EmitBlock(nextBlock);
}
// Otherwise we need to emit and continue at that block.
CGF.EmitBlock(nextBlock);
}
llvm_unreachable("fell out of loop!");
}
void CodeGenFunction::popCatchScope() {

View File

@ -878,7 +878,6 @@ public:
case LookupResult::FoundOverloaded:
case LookupResult::FoundUnresolvedValue:
llvm_unreachable("Tag lookup cannot find non-tags");
return QualType();
case LookupResult::Ambiguous:
// Let the LookupResult structure handle ambiguities.
@ -1783,8 +1782,6 @@ public:
default:
llvm_unreachable("Invalid C++ named cast");
}
return ExprError();
}
/// \brief Build a new C++ static_cast expression.
@ -2854,7 +2851,6 @@ TreeTransform<Derived>::TransformTemplateName(CXXScopeSpec &SS,
// These should be getting filtered out before they reach the AST.
llvm_unreachable("overloaded function decl survived to here");
return TemplateName();
}
template<typename Derived>
@ -3255,7 +3251,6 @@ TreeTransform<Derived>::TransformType(TypeLocBuilder &TLB, TypeLoc T) {
}
llvm_unreachable("unhandled type loc!");
return QualType();
}
/// FIXME: By default, this routine adds type qualifiers only to types
@ -6737,7 +6732,6 @@ TreeTransform<Derived>::TransformCXXOperatorCallExpr(CXXOperatorCallExpr *E) {
case OO_Array_New:
case OO_Array_Delete:
llvm_unreachable("new and delete operators cannot use CXXOperatorCallExpr");
return ExprError();
case OO_Call: {
// This is a call to an object's operator().
@ -6774,12 +6768,10 @@ TreeTransform<Derived>::TransformCXXOperatorCallExpr(CXXOperatorCallExpr *E) {
case OO_Conditional:
llvm_unreachable("conditional operator is not actually overloadable");
return ExprError();
case OO_None:
case NUM_OVERLOADED_OPERATORS:
llvm_unreachable("not an overloaded operator?");
return ExprError();
}
ExprResult Callee = getDerived().TransformExpr(E->getCallee());