Skip to content

Commit f13eefe

Browse files
committed
remote not used flag
1 parent 8df94c0 commit f13eefe

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

include/swift/AST/Expr.h

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -319,8 +319,7 @@ class alignas(8) Expr : public ASTAllocated<Expr> {
319319
ImplicitlyAsync : 1,
320320
ImplicitlyThrows : 1,
321321
NoAsync : 1,
322-
ShouldApplyDistributedThunk : 1,
323-
ShouldApplyDistributedLocalThunk : 1
322+
ShouldApplyDistributedThunk : 1
324323
);
325324

326325
SWIFT_INLINE_BITFIELD_EMPTY(CallExpr, ApplyExpr);
@@ -4447,7 +4446,6 @@ class ApplyExpr : public Expr {
44474446
Bits.ApplyExpr.ImplicitlyThrows = false;
44484447
Bits.ApplyExpr.NoAsync = false;
44494448
Bits.ApplyExpr.ShouldApplyDistributedThunk = false;
4450-
Bits.ApplyExpr.ShouldApplyDistributedLocalThunk = false;
44514449
}
44524450

44534451
public:
@@ -4538,24 +4536,9 @@ class ApplyExpr : public Expr {
45384536
return Bits.ApplyExpr.ShouldApplyDistributedThunk;
45394537
}
45404538
void setShouldApplyDistributedThunk(bool flag) {
4541-
if (flag) {
4542-
setShouldApplyDistributedLocalThunk(false);
4543-
}
45444539
Bits.ApplyExpr.ShouldApplyDistributedThunk = flag;
45454540
}
45464541

4547-
/// Informs IRGen to that this expression should be applied as its distributed
4548-
/// local thunk, rather than invoking the function directly.
4549-
bool shouldApplyDistributedLocalThunk() const {
4550-
return Bits.ApplyExpr.ShouldApplyDistributedLocalThunk;
4551-
}
4552-
void setShouldApplyDistributedLocalThunk(bool flag) {
4553-
if (flag) {
4554-
setShouldApplyDistributedThunk(false);
4555-
}
4556-
Bits.ApplyExpr.ShouldApplyDistributedLocalThunk = flag;
4557-
}
4558-
45594542
ValueDecl *getCalledValue() const;
45604543

45614544
static bool classof(const Expr *E) {

0 commit comments

Comments
 (0)