@@ -823,11 +823,10 @@ class SILBuilder {
823
823
LoadBorrowInst (getSILDebugLocation (Loc), LV));
824
824
}
825
825
826
- BeginBorrowInst *createBeginBorrow (SILLocation Loc, SILValue LV,
827
- IsLexical_t isLexical = IsNotLexical,
828
- bool hasPointerEscape = false ,
829
- bool fromVarDecl = false ,
830
- bool fixed = false ) {
826
+ BeginBorrowInst *createBeginBorrow (
827
+ SILLocation Loc, SILValue LV, IsLexical_t isLexical = IsNotLexical,
828
+ HasPointerEscape_t hasPointerEscape = DoesNotHavePointerEscape,
829
+ bool fromVarDecl = false , bool fixed = false ) {
831
830
assert (getFunction ().hasOwnership ());
832
831
assert (!LV->getType ().isAddress ());
833
832
return insert (new (getModule ())
@@ -851,10 +850,10 @@ class SILBuilder {
851
850
return createLoadBorrow (loc, v);
852
851
}
853
852
854
- SILValue emitBeginBorrowOperation (SILLocation loc, SILValue v,
855
- IsLexical_t isLexical = IsNotLexical,
856
- bool hasPointerEscape = false ,
857
- bool fromVarDecl = false ) {
853
+ SILValue emitBeginBorrowOperation (
854
+ SILLocation loc, SILValue v, IsLexical_t isLexical = IsNotLexical,
855
+ HasPointerEscape_t hasPointerEscape = DoesNotHavePointerEscape ,
856
+ bool fromVarDecl = false ) {
858
857
if (!hasOwnership () ||
859
858
v->getOwnershipKind ().isCompatibleWith (OwnershipKind::Guaranteed))
860
859
return v;
0 commit comments