Fix swift_symbolgraph_extract_main.cpp SmallVector

This commit is contained in:
Arnold Schwaighofer
2021-08-04 07:11:16 -07:00
parent 8a0eb42a34
commit a202c8fc72

View File

@@ -235,7 +235,7 @@ int swift_symbolgraph_extract_main(ArrayRef<const char *> Args,
// don't need to print these errors.
CI.removeDiagnosticConsumer(&DiagPrinter);
SmallVector<ModuleDecl *> Overlays;
SmallVector<ModuleDecl *, 32> Overlays;
M->findDeclaredCrossImportOverlaysTransitive(Overlays);
for (const auto *OM : Overlays) {
auto CIM = CI.getASTContext().getModuleByName(OM->getNameStr());