File tree Expand file tree Collapse file tree 3 files changed +20
-5
lines changed
SwiftCompilerSources/Sources/SIL Expand file tree Collapse file tree 3 files changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -205,8 +205,14 @@ public struct Builder {
205
205
return notifyNew ( bridged. createCopyValue ( operand. bridged) . getAs ( CopyValueInst . self) )
206
206
}
207
207
208
- public func createBeginBorrow( of value: Value ) -> BeginBorrowInst {
209
- return notifyNew ( bridged. createBeginBorrow ( value. bridged) . getAs ( BeginBorrowInst . self) )
208
+ public func createBeginBorrow(
209
+ of value: Value ,
210
+ isLexical: Bool = false ,
211
+ hasPointerEscape: Bool = false ,
212
+ isFromVarDecl: Bool = false
213
+ ) -> BeginBorrowInst {
214
+ return notifyNew ( bridged. createBeginBorrow ( value. bridged,
215
+ isLexical, hasPointerEscape, isFromVarDecl) . getAs ( BeginBorrowInst . self) )
210
216
}
211
217
212
218
public func createBorrowedFrom( borrowedValue: Value , enclosingValues: [ Value ] ) -> BorrowedFromInst {
Original file line number Diff line number Diff line change @@ -1221,7 +1221,10 @@ struct BridgedBuilder{
1221
1221
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createUnownedRelease (BridgedValue op) const ;
1222
1222
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createFunctionRef (BridgedFunction function) const ;
1223
1223
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createCopyValue (BridgedValue op) const ;
1224
- SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createBeginBorrow (BridgedValue op) const ;
1224
+ SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createBeginBorrow (BridgedValue op,
1225
+ bool isLexical,
1226
+ bool hasPointerEscape,
1227
+ bool isFromVarDecl) const ;
1225
1228
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createBorrowedFrom (BridgedValue borrowedValue,
1226
1229
BridgedValueArray enclosingValues) const ;
1227
1230
SWIFT_IMPORT_UNSAFE BRIDGED_INLINE BridgedInstruction createEndBorrow (BridgedValue op) const ;
Original file line number Diff line number Diff line change @@ -1942,8 +1942,14 @@ BridgedInstruction BridgedBuilder::createCopyValue(BridgedValue op) const {
1942
1942
return {unbridged ().createCopyValue (regularLoc (), op.getSILValue ())};
1943
1943
}
1944
1944
1945
- BridgedInstruction BridgedBuilder::createBeginBorrow (BridgedValue op) const {
1946
- return {unbridged ().createBeginBorrow (regularLoc (), op.getSILValue ())};
1945
+ BridgedInstruction BridgedBuilder::createBeginBorrow (BridgedValue op,
1946
+ bool isLexical,
1947
+ bool hasPointerEscape,
1948
+ bool isFromVarDecl) const {
1949
+ return {unbridged ().createBeginBorrow (regularLoc (), op.getSILValue (),
1950
+ swift::IsLexical_t (isLexical),
1951
+ swift::HasPointerEscape_t (hasPointerEscape),
1952
+ swift::IsFromVarDecl_t (isFromVarDecl))};
1947
1953
}
1948
1954
1949
1955
BridgedInstruction BridgedBuilder::createBorrowedFrom (BridgedValue borrowedValue,
You can’t perform that action at this time.
0 commit comments