Skip to content

Commit 15f3cd3

Browse files
committed
Remove accidentally left behind debug assertion.
This was intended to track down a bug, not be left in. Sorry.
1 parent 103882f commit 15f3cd3

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

lib/SIL/SILInstructions.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,11 +408,6 @@ ApplyInst *ApplyInst::create(SILDebugLocation Loc, SILValue Callee,
408408
ArrayRef<SILValue> Args, bool isNonThrowing,
409409
SILFunction &F,
410410
SILOpenedArchetypesState &OpenedArchetypes) {
411-
if (!F.getModule().Types.getCurGenericContext())
412-
assert(Callee->getType().castTo<SILFunctionType>()
413-
->substGenericArgs(F.getModule(), Subs)
414-
== SubstCalleeTy.getSwiftRValueType());
415-
416411
SmallVector<SILValue, 32> TypeDependentOperands;
417412
collectTypeDependentOperands(TypeDependentOperands, OpenedArchetypes, F,
418413
SubstCalleeTy.getSwiftRValueType(), Subs);

0 commit comments

Comments
 (0)