Skip to content

Commit f09610e

Browse files
committed
SIL: Remove an obsolete verifier check
This code has been commented out for years, doesn't compile, and when I changed it to compile it blew up building overlays. I don't feel it adds any value to have it around so I'm removing it.
1 parent af11149 commit f09610e

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

lib/SIL/SILVerifier.cpp

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3903,18 +3903,6 @@ class SILVerifier : public SILVerifierBase<SILVerifier> {
39033903
void visitSILFunction(SILFunction *F) {
39043904
PrettyStackTraceSILFunction stackTrace("verifying", F);
39053905

3906-
if (F->getLinkage() == SILLinkage::PrivateExternal) {
3907-
// FIXME: uncomment these checks.
3908-
// <rdar://problem/18635841> SILGen can create non-fragile external
3909-
// private_external declarations
3910-
//
3911-
// assert(!isExternalDeclaration() &&
3912-
// "PrivateExternal should not be an external declaration");
3913-
// assert(isFragile() &&
3914-
// "PrivateExternal should be fragile (otherwise, how did it appear "
3915-
// "in this module?)");
3916-
}
3917-
39183906
CanSILFunctionType FTy = F->getLoweredFunctionType();
39193907
verifySILFunctionType(FTy);
39203908

0 commit comments

Comments
 (0)