@@ -76,20 +76,20 @@ class SILArgument : public ValueBase {
7676 SILArgument (ValueKind subClassKind, SILBasicBlock *inputParentBlock,
7777 SILType type, ValueOwnershipKind ownershipKind,
7878 const ValueDecl *inputDecl = nullptr , bool reborrow = false ,
79- bool escaping = false );
79+ bool pointerEscape = false );
8080
8181 // A special constructor, only intended for use in
8282 // SILBasicBlock::replacePHIArg and replaceFunctionArg.
8383 explicit SILArgument (ValueKind subClassKind, SILType type,
8484 ValueOwnershipKind ownershipKind,
8585 const ValueDecl *inputDecl = nullptr ,
86- bool reborrow = false , bool escaping = false )
86+ bool reborrow = false , bool pointerEscape = false )
8787 : ValueBase(subClassKind, type), parentBlock(nullptr ), decl(inputDecl) {
8888 sharedUInt8 ().SILArgument .valueOwnershipKind = uint8_t (ownershipKind);
8989 // When the optimizer creates reborrows, reborrow flag needs to be set by
9090 // calling setReborrow.
9191 sharedUInt8 ().SILArgument .reborrow = false ;
92- sharedUInt8 ().SILArgument .escaping = false ;
92+ sharedUInt8 ().SILArgument .pointerEscape = false ;
9393 }
9494
9595public:
@@ -119,8 +119,8 @@ class SILArgument : public ValueBase {
119119 return getOwnershipKind () == OwnershipKind::Guaranteed && !isReborrow ();
120120 }
121121
122- bool isEscaping () const {
123- return ValueOwnershipKind (sharedUInt8 ().SILArgument .escaping );
122+ bool hasPointerEscape () const {
123+ return ValueOwnershipKind (sharedUInt8 ().SILArgument .pointerEscape );
124124 }
125125
126126 void setOwnershipKind (ValueOwnershipKind newKind) {
@@ -131,8 +131,8 @@ class SILArgument : public ValueBase {
131131 sharedUInt8 ().SILArgument .reborrow = isReborrow;
132132 }
133133
134- void setEscaping (bool isEscaping ) {
135- sharedUInt8 ().SILArgument .escaping = isEscaping ;
134+ void setEscaping (bool hasPointerEscape ) {
135+ sharedUInt8 ().SILArgument .pointerEscape = hasPointerEscape ;
136136 }
137137
138138 SILBasicBlock *getParent () const { return parentBlock; }
@@ -260,17 +260,18 @@ class SILPhiArgument : public SILArgument {
260260 SILPhiArgument (SILBasicBlock *parentBlock, SILType type,
261261 ValueOwnershipKind ownershipKind,
262262 const ValueDecl *decl = nullptr , bool isReborrow = false ,
263- bool isEscaping = false )
263+ bool hasPointerEscape = false )
264264 : SILArgument(ValueKind::SILPhiArgument, parentBlock, type, ownershipKind,
265- decl, isReborrow, isEscaping ) {}
265+ decl, isReborrow, hasPointerEscape ) {}
266266
267267 // A special constructor, only intended for use in
268268 // SILBasicBlock::replacePHIArg.
269269 explicit SILPhiArgument (SILType type, ValueOwnershipKind ownershipKind,
270270 const ValueDecl *decl = nullptr ,
271- bool isReborrow = false , bool isEscaping = false )
271+ bool isReborrow = false ,
272+ bool hasPointerEscape = false )
272273 : SILArgument(ValueKind::SILPhiArgument, type, ownershipKind, decl,
273- isReborrow, isEscaping ) {}
274+ isReborrow, hasPointerEscape ) {}
274275
275276public:
276277 // / Return true if this is block argument is a phi, as opposed to a terminator
0 commit comments