File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -278,6 +278,7 @@ void verifyKeyPathComponent(SILModule &M,
278
278
SILFunctionTypeRepresentation::Thin,
279
279
" getter should be a thin function" );
280
280
281
+ auto &C = M.getASTContext ();
281
282
require (substGetterType->getNumParameters () == 1 + (hasIndices || C.LangOpts .Target .isOSBinFormatWasm ()),
282
283
" getter should have one parameter" );
283
284
auto baseParam = substGetterType->getParameters ()[0 ];
@@ -330,6 +331,7 @@ void verifyKeyPathComponent(SILModule &M,
330
331
SILFunctionTypeRepresentation::Thin,
331
332
" setter should be a thin function" );
332
333
334
+ auto &C = M.getASTContext ();
333
335
require (substSetterType->getNumParameters () == 2 + (hasIndices || C.LangOpts .Target .isOSBinFormatWasm ()),
334
336
" setter should have two parameters" );
335
337
You can’t perform that action at this time.
0 commit comments