We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf6a137 commit a218281Copy full SHA for a218281
lib/SIL/Verifier/SILVerifier.cpp
@@ -5450,6 +5450,16 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
5450
CanSILFunctionType FTy = F->getLoweredFunctionType();
5451
verifySILFunctionType(FTy);
5452
5453
+ // Don't verify functions that were skipped. We are likely to see them in
5454
+ // FunctionBodySkipping::NonInlinableWithoutTypes mode.
5455
+ auto Ctx = F->getDeclContext();
5456
+ if (Ctx) {
5457
+ if (auto AFD = dyn_cast<AbstractFunctionDecl>(Ctx)) {
5458
+ if (AFD->isBodySkipped())
5459
+ return;
5460
+ }
5461
5462
+
5463
if (F->isExternalDeclaration()) {
5464
if (F->hasForeignBody())
5465
return;
0 commit comments