Skip to content

Commit e42ef52

Browse files
authored
Merge pull request #7270 from jckarter/remove-assert-3.1
[3.1] Remove accidentally left behind debug assertion.
2 parents 103882f + 15f3cd3 commit e42ef52

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)