File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ struct ResultTypeInfo {
241
241
#else
242
242
size_t size = 0 ;
243
243
size_t alignMask = 0 ;
244
- void (*initializeWithCopy)(OpaqueValue *result, OpaqueValue *src) = nullptr;
244
+ OpaqueValue * (*initializeWithCopy)(OpaqueValue *result, OpaqueValue *src, void *type ) = nullptr ;
245
245
void (*storeEnumTagSinglePayload)(OpaqueValue *v, unsigned whichCase,
246
246
unsigned emptyCases) = nullptr;
247
247
void (*destroy)(OpaqueValue *, void *) = nullptr;
@@ -256,7 +256,7 @@ struct ResultTypeInfo {
256
256
return alignMask + 1 ;
257
257
}
258
258
void vw_initializeWithCopy (OpaqueValue *result, OpaqueValue *src) {
259
- initializeWithCopy (result, src);
259
+ initializeWithCopy (result, src, nullptr );
260
260
}
261
261
void vw_storeEnumTagSinglePayload (OpaqueValue *v, unsigned whichCase,
262
262
unsigned emptyCases) {
Original file line number Diff line number Diff line change @@ -215,9 +215,9 @@ class ResultTypeInfoTaskOptionRecord : public TaskOptionRecord {
215
215
size_t size;
216
216
size_t alignMask;
217
217
218
- void (*__ptrauth_swift_value_witness_function_pointer (
218
+ OpaqueValue * (*__ptrauth_swift_value_witness_function_pointer (
219
219
SpecialPointerAuthDiscriminators::InitializeWithCopy)
220
- initializeWithCopy)(OpaqueValue *, OpaqueValue *);
220
+ initializeWithCopy)(OpaqueValue *, OpaqueValue *, void * );
221
221
222
222
void (*__ptrauth_swift_value_witness_function_pointer (
223
223
SpecialPointerAuthDiscriminators::StoreEnumTagSinglePayload)
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: %target-swift-frontend -enable-experimental-feature Embedded -parse-as-library %s -c -o %t/a.o
3
- // RUN: %target-clang %t/a.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%target-cpu-apple-macos -lswift_Concurrency -lswift_ConcurrencyDefaultExecutor -dead_strip
3
+ // RUN: %target-clang %t/a.o -o %t/a.out -L%swift_obj_root/lib/swift/embedded/%module- target-triple %target-clang-resource-dir-opt -lswift_Concurrency %target-swift-default-executor-opt -dead_strip
4
4
// RUN: %target-run %t/a.out | %FileCheck %s
5
5
6
6
// REQUIRES: executable_test
7
7
// REQUIRES: swift_in_compiler
8
8
// REQUIRES: optimized_stdlib
9
- // REQUIRES: OS=macosx
9
+ // REQUIRES: OS=macosx || OS=wasip1
10
10
// REQUIRES: swift_feature_Embedded
11
11
12
12
import _Concurrency
You can’t perform that action at this time.
0 commit comments