We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SwiftRT-Wasm.cpp
1 parent 5667db4 commit d8c05a6Copy full SHA for d8c05a6
stdlib/public/runtime/SwiftRT-WASM.cpp
@@ -14,6 +14,7 @@
14
#include "../SwiftShims/MetadataSections.h"
15
16
#include <cstddef>
17
+#include <new>
18
19
// Link start/stop symbols weakly to link them if they aren't synthesized by the linker.
20
#define DECLARE_SWIFT_SECTION(name) \
@@ -47,9 +48,9 @@ static void swift_image_constructor() {
47
48
{ reinterpret_cast<uintptr_t>(&__start_##name), \
49
static_cast<uintptr_t>(&__stop_##name - &__start_##name) }
50
- sections = {
51
+ new (§ions) swift::MetadataSections {
52
swift::CurrentSectionMetadataVersion,
- 0,
53
+ { 0 },
54
55
nullptr,
56
0 commit comments