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,
278278 SILFunctionTypeRepresentation::Thin,
279279 " getter should be a thin function" );
280280
281+ auto &C = M.getASTContext ();
281282 require (substGetterType->getNumParameters () == 1 + (hasIndices || C.LangOpts .Target .isOSBinFormatWasm ()),
282283 " getter should have one parameter" );
283284 auto baseParam = substGetterType->getParameters ()[0 ];
@@ -330,6 +331,7 @@ void verifyKeyPathComponent(SILModule &M,
330331 SILFunctionTypeRepresentation::Thin,
331332 " setter should be a thin function" );
332333
334+ auto &C = M.getASTContext ();
333335 require (substSetterType->getNumParameters () == 2 + (hasIndices || C.LangOpts .Target .isOSBinFormatWasm ()),
334336 " setter should have two parameters" );
335337
You can’t perform that action at this time.
0 commit comments