@@ -3770,10 +3770,7 @@ class ClosureExpr : public AbstractClosureExpr {
3770
3770
// / the CaptureListExpr which would normally maintain this sort of
3771
3771
// / information about captured variables), we need to have some way to access
3772
3772
// / this information directly on the ClosureExpr.
3773
- // /
3774
- // / The bit indicates whether this closure has had a function builder
3775
- // / applied to it.
3776
- llvm::PointerIntPair<VarDecl *, 1 , bool > CapturedSelfDeclAndAppliedBuilder;
3773
+ VarDecl * CapturedSelfDecl;
3777
3774
3778
3775
// / The location of the "throws", if present.
3779
3776
SourceLoc ThrowsLoc;
@@ -3800,7 +3797,7 @@ class ClosureExpr : public AbstractClosureExpr {
3800
3797
: AbstractClosureExpr(ExprKind::Closure, Type(), /* Implicit=*/ false ,
3801
3798
discriminator, parent),
3802
3799
BracketRange (bracketRange),
3803
- CapturedSelfDeclAndAppliedBuilder (capturedSelfDecl, false ),
3800
+ CapturedSelfDecl (capturedSelfDecl),
3804
3801
ThrowsLoc(throwsLoc), ArrowLoc(arrowLoc), InLoc(inLoc),
3805
3802
ExplicitResultTypeAndEnclosingChecked(explicitResultType, false ),
3806
3803
Body(nullptr ) {
@@ -3906,22 +3903,14 @@ class ClosureExpr : public AbstractClosureExpr {
3906
3903
3907
3904
// / VarDecl captured by this closure under the literal name \c self , if any.
3908
3905
VarDecl *getCapturedSelfDecl () const {
3909
- return CapturedSelfDeclAndAppliedBuilder. getPointer () ;
3906
+ return CapturedSelfDecl ;
3910
3907
}
3911
3908
3912
3909
// / Whether this closure captures the \c self param in its body in such a
3913
3910
// / way that implicit \c self is enabled within its body (i.e. \c self is
3914
3911
// / captured non-weakly).
3915
3912
bool capturesSelfEnablingImplictSelf () const ;
3916
3913
3917
- bool hasAppliedFunctionBuilder () const {
3918
- return CapturedSelfDeclAndAppliedBuilder.getInt ();
3919
- }
3920
-
3921
- void setAppliedFunctionBuilder (bool flag = true ) {
3922
- CapturedSelfDeclAndAppliedBuilder.setInt (flag);
3923
- }
3924
-
3925
3914
// / Whether this closure's body was type checked within the enclosing
3926
3915
// / context.
3927
3916
bool wasTypeCheckedInEnclosingContext () const {
0 commit comments