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.
2 parents a6b302c + a218281 commit b935c4aCopy full SHA for b935c4a
lib/SIL/Verifier/SILVerifier.cpp
@@ -5467,6 +5467,16 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
5467
CanSILFunctionType FTy = F->getLoweredFunctionType();
5468
verifySILFunctionType(FTy);
5469
5470
+ // Don't verify functions that were skipped. We are likely to see them in
5471
+ // FunctionBodySkipping::NonInlinableWithoutTypes mode.
5472
+ auto Ctx = F->getDeclContext();
5473
+ if (Ctx) {
5474
+ if (auto AFD = dyn_cast<AbstractFunctionDecl>(Ctx)) {
5475
+ if (AFD->isBodySkipped())
5476
+ return;
5477
+ }
5478
5479
+
5480
if (F->isExternalDeclaration()) {
5481
if (F->hasForeignBody())
5482
return;
0 commit comments