From 9cb25736e0bd479ca50bfdcf47bd90df3c86ae2a Mon Sep 17 00:00:00 2001 From: Arnold Schwaighofer Date: Sat, 14 May 2022 07:43:51 -0700 Subject: [PATCH] ClangImporter.cpp: Fix compilation on some linux systems --- lib/ClangImporter/ClangImporter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ClangImporter/ClangImporter.cpp b/lib/ClangImporter/ClangImporter.cpp index 588317fd93aeb..c783ea0c2f736 100644 --- a/lib/ClangImporter/ClangImporter.cpp +++ b/lib/ClangImporter/ClangImporter.cpp @@ -866,7 +866,7 @@ importer::addCommonInvocationArguments( /// On Linux, some platform libraries (glibc, libstdc++) are not modularized. /// We inject modulemaps for those libraries into their include directories /// to allow using them from Swift. -static SmallVector> +static SmallVector, 16> getClangInvocationFileMapping(ASTContext &ctx) { using Path = SmallString<128>; @@ -923,7 +923,7 @@ getClangInvocationFileMapping(ASTContext &ctx) { cxxStdlibDirs.push_back(Path(iter->path())); } - SmallVector> result; + SmallVector, 16> result; // Inject a modulemap into the VFS for each of the libstdc++ versions. for (const Path &cxxStdlibDir : cxxStdlibDirs) { // Only inject the module map if the module does not already exist at