Remove accidentally left behind debug assertion.

This was intended to track down a bug, not be left in. Sorry.
This commit is contained in:
Joe Groff
2017-02-06 08:44:23 -08:00
parent 7b300d1461
commit 938e733923

View File

@@ -409,11 +409,6 @@ ApplyInst *ApplyInst::create(SILDebugLocation Loc, SILValue Callee,
ArrayRef<SILValue> Args, bool isNonThrowing,
SILFunction &F,
SILOpenedArchetypesState &OpenedArchetypes) {
if (!F.getModule().Types.getCurGenericContext())
assert(Callee->getType().castTo<SILFunctionType>()
->substGenericArgs(F.getModule(), Subs)
== SubstCalleeTy.getSwiftRValueType());
SmallVector<SILValue, 32> TypeDependentOperands;
collectTypeDependentOperands(TypeDependentOperands, OpenedArchetypes, F,
SubstCalleeTy.getSwiftRValueType(), Subs);