Skip to content

Commit 62ca2aa

Browse files
committed
SIL: Fix an old FIXME
1 parent a92724b commit 62ca2aa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lib/SIL/SILFunctionType.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -983,10 +983,8 @@ class DestructureInputs {
983983
for (auto i : indices(substTupleTy.getElementTypes())) {
984984
auto &elt = substTupleTy->getElement(i);
985985
auto ownership = elt.getParameterFlags().getValueOwnership();
986-
// FIXME(swift3): Once the entire parameter list is no longer a
987-
// target for substitution, re-enable this.
988-
// assert(ownership == ValueOwnership::Default);
989-
// assert(!elt.isVararg());
986+
assert(ownership == ValueOwnership::Default);
987+
assert(!elt.isVararg());
990988
visit(ownership, forSelf,
991989
origType.getTupleElementType(i),
992990
CanType(elt.getRawType()), rep);

0 commit comments

Comments
 (0)