File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,8 @@ struct ScopedAddressValue {
122122 AddressUseKind updateTransitiveLiveness (SSAPrunedLiveness &liveness) const ;
123123
124124 // / Create appropriate scope ending instruction at \p insertPt.
125- void createScopeEnd (SILBasicBlock::iterator insertPt, SILLocation loc) const ;
125+ SILInstruction *createScopeEnd (SILBasicBlock::iterator insertPt,
126+ SILLocation loc) const ;
126127
127128 // / Create scope ending instructions at \p liveness boundary.
128129 void endScopeAtLivenessBoundary (SSAPrunedLiveness *liveness) const ;
Original file line number Diff line number Diff line change @@ -151,16 +151,15 @@ AddressUseKind ScopedAddressValue::updateTransitiveLiveness(
151151 return addressKind;
152152}
153153
154- void ScopedAddressValue::createScopeEnd (SILBasicBlock::iterator insertPt,
155- SILLocation loc) const {
154+ SILInstruction *
155+ ScopedAddressValue::createScopeEnd (SILBasicBlock::iterator insertPt,
156+ SILLocation loc) const {
156157 switch (kind) {
157158 case ScopedAddressValueKind::StoreBorrow: {
158- SILBuilderWithScope (insertPt).createEndBorrow (loc, value);
159- return ;
159+ return SILBuilderWithScope (insertPt).createEndBorrow (loc, value);
160160 }
161161 case ScopedAddressValueKind::BeginAccess: {
162- SILBuilderWithScope (insertPt).createEndAccess (loc, value, false );
163- return ;
162+ return SILBuilderWithScope (insertPt).createEndAccess (loc, value, false );
164163 }
165164 case ScopedAddressValueKind::Invalid:
166165 llvm_unreachable (" Using invalid case?!" );
You can’t perform that action at this time.
0 commit comments