mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Threading] Fix the Linux build.
A few fixes specifically for the Linux build. rdar://90776105
This commit is contained in:
@@ -54,7 +54,7 @@ _swift_stdlib_threadLocalStorageGet(void) {
|
||||
static swift::tls_key key;
|
||||
static swift::once_t token;
|
||||
|
||||
swift::tls_alloc_once(token, key, [](void *)pointer {
|
||||
swift::tls_alloc_once(token, key, [](void *pointer) {
|
||||
_stdlib_destroyTLS(pointer);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user