Skip to content

Commit be1c9ad

Browse files
committed
[CSApply] CurryThunks: Add an assert to make sure that all applied property wrappers are used
1 parent 44908ac commit be1c9ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Sema/CSApply.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,6 +1264,8 @@ namespace {
12641264
args.emplace_back(SourceLoc(), calleeParam.getLabel(), paramRef);
12651265
}
12661266

1267+
ASSERT(appliedWrapperIndex == appliedPropertyWrappers.size());
1268+
12671269
// SILGen knows how to emit property-wrapped parameters, but the
12681270
// corresponding parameter types need to match the backing wrapper types.
12691271
// To handle this, build a new callee function type out of the adjusted

0 commit comments

Comments
 (0)