Skip to content

Commit 539b49b

Browse files
committed
Concurrency: Suppress -Wnontrivial-memcall warning in Actor.cpp.
NFC.
1 parent 7e8d8b6 commit 539b49b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stdlib/public/Concurrency/Actor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2774,7 +2774,8 @@ swift::swift_distributedActor_remote_initialize(const Metadata *actorType) {
27742774

27752775
// TODO: remove this memset eventually, today we only do this to not have
27762776
// to modify the destructor logic, as releasing zeroes is no-op
2777-
memset(alloc + 1, 0, metadata->getInstanceSize() - sizeof(HeapObject));
2777+
memset((void *)(alloc + 1), 0,
2778+
metadata->getInstanceSize() - sizeof(HeapObject));
27782779

27792780
// TODO(distributed): a remote one does not have to have the "real"
27802781
// default actor body, e.g. we don't need an executor at all; so

0 commit comments

Comments
 (0)