Files
swift-mirror/lib/SILOptimizer/Mandatory/RawSILInstLowering.cpp
Pavel Yaskevich 65cfb1cf10 [RawSILLowering] InitAccessors: guard against situations when emitBeginBorrowOperation returns back original value
Calling `emitBeginBorrowOperation` on something which is `load_borrow`
for example with guaranteed ownership doesn't produce `begin_borrow`
instruction, so we need to be careful not to emit mismatched `end_borrow`
in such cases.
2023-07-18 17:19:42 -07:00

20 KiB