Skip to content

Commit 5fc55b6

Browse files
Add <new> into every bridge header
1 parent 80e7546 commit 5fc55b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/PrintAsClang/ModuleContentsWriter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -780,6 +780,7 @@ EmittedClangHeaderDependencyInfo swift::printModuleContentsAsCxx(
780780
os << "#ifndef SWIFT_CXX_INTEROP_HIDE_STL_OVERLAY\n";
781781
os << "#include <string>\n";
782782
os << "#endif\n";
783+
os << "#include <new>\n";
783784
// Embed an overlay for the standard library.
784785
ClangSyntaxPrinter(moduleOS).printIncludeForShimHeader(
785786
"_SwiftStdlibCxxOverlay.h");

0 commit comments

Comments
 (0)