Skip to content

Commit 8f01b2c

Browse files
committed
[PrintAsObjC] Don't include the module for empty extensions
rdar://problem/57133517
1 parent d11232b commit 8f01b2c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/PrintAsObjC/ModuleContentsWriter.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,9 @@ class ModuleWriter {
400400
}
401401

402402
bool writeExtension(const ExtensionDecl *ED) {
403+
if (printer.isEmptyExtensionDecl(ED))
404+
return true;
405+
403406
bool allRequirementsSatisfied = true;
404407

405408
const ClassDecl *CD = ED->getSelfClassDecl();

0 commit comments

Comments
 (0)