Skip to content

Commit 7005230

Browse files
Fix broken build
1 parent 60d7fd8 commit 7005230

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SIL/Verifier/SILVerifier.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)