File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,8 @@ static const FullMetadata<HeapMetadata> ErrorProtocolMetadata{
62
62
Metadata{MetadataKind::ErrorObject},
63
63
};
64
64
65
+ SWIFT_CC (swift) SWIFT_RUNTIME_EXPORT
66
+ extern "C"
65
67
BoxPair::Return
66
68
swift::swift_allocError(const swift::Metadata *type,
67
69
const swift::WitnessTable *errorConformance,
Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ struct SwiftError : SwiftErrorHeader {
142
142
// / copied (or taken if \c isTake is true) into the newly-allocated error box.
143
143
// / If value is null, the box's contents will be left uninitialized, and
144
144
// / \c isTake should be false.
145
- SWIFT_RUNTIME_EXPORT
145
+ SWIFT_CC (swift) SWIFT_RUNTIME_EXPORT
146
146
extern " C" BoxPair::Return swift_allocError (const Metadata *type,
147
147
const WitnessTable *errorConformance,
148
148
OpaqueValue *value, bool isTake);
You can’t perform that action at this time.
0 commit comments