diff --git a/lib/Frontend/ParseableInterfaceSupport.cpp b/lib/Frontend/ParseableInterfaceSupport.cpp index 33d81d4121fd6..2321c1a434d99 100644 --- a/lib/Frontend/ParseableInterfaceSupport.cpp +++ b/lib/Frontend/ParseableInterfaceSupport.cpp @@ -528,8 +528,7 @@ static void printImports(raw_ostream &out, ModuleDecl *M) { publicImportSet.insert(publicImports.begin(), publicImports.end()); for (auto import : allImports) { - if (import.second->isStdlibModule() || - import.second->isOnoneSupportModule() || + if (import.second->isOnoneSupportModule() || import.second->isBuiltinModule()) { continue; } diff --git a/test/ParseableInterface/imports-submodule-order.swift b/test/ParseableInterface/imports-submodule-order.swift index 5ec05c36c5c19..d6694bbc5ea87 100644 --- a/test/ParseableInterface/imports-submodule-order.swift +++ b/test/ParseableInterface/imports-submodule-order.swift @@ -17,6 +17,7 @@ // CHECK-NOT: import // CHECK: import X.Submodule{{$}} // CHECK-NEXT: import Y.Submodule{{$}} +// CHECK-NEXT: {{^}}import Swift{{$}} // CHECK-NEXT: import X{{$}} // CHECK-NEXT: import Y{{$}} // CHECK-NOT: import diff --git a/test/ParseableInterface/imports.swift b/test/ParseableInterface/imports.swift index 6482e7f55a224..337e5979a1d3c 100644 --- a/test/ParseableInterface/imports.swift +++ b/test/ParseableInterface/imports.swift @@ -15,5 +15,6 @@ import D // CHECK-NEXT: {{^}}import B.B3{{$}} // CHECK-NEXT: {{^}}import C/*.c*/{{$}} // CHECK-NEXT: {{^}}import D{{$}} +// CHECK-NEXT: {{^}}import Swift{{$}} // CHECK-NEXT: {{^}}@_exported import empty{{$}} // CHECK-NOT: import