Skip to content

Commit 06061a6

Browse files
committed
Fold away unnecessary SWIFT_CONCURRENCY_BACK_DEPLOYMENT checks
1 parent fa09001 commit 06061a6

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

stdlib/public/BackDeployConcurrency/Actor.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
//
1515
//===----------------------------------------------------------------------===//
1616

17-
#ifndef SWIFT_ABI_ACTOR_H
18-
#define SWIFT_ABI_ACTOR_H
17+
#ifndef SWIFT_ABI_ACTOR_BACKDEPLOYED_H
18+
#define SWIFT_ABI_ACTOR_BACKDEPLOYED_H
1919

2020
#include "swift/ABI/HeapObject.h"
2121
#include "swift/ABI/MetadataValues.h"
@@ -44,9 +44,7 @@ class alignas(Alignment_DefaultActor) DefaultActor : public HeapObject {
4444
}
4545

4646
void initHeapObject() {
47-
#ifdef SWIFT_CONCURRENCY_BACK_DEPLOYMENT
4847
_swift_instantiateInertHeapObject(this, metadata);
49-
#endif
5048
}
5149

5250
void *PrivateData[NumWords_DefaultActor];

stdlib/public/BackDeployConcurrency/Task.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,7 @@ class alignas(2 * alignof(void*)) Job :
125125
}
126126

127127
void initHeapObject() {
128-
#ifdef SWIFT_CONCURRENCY_BACK_DEPLOYMENT
129128
_swift_instantiateInertHeapObject(this, metadata);
130-
#endif
131129
}
132130

133131
~Job() { swift_voucher_release(Voucher); }

0 commit comments

Comments
 (0)