File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -122,7 +122,8 @@ struct ScopedAddressValue {
122
122
AddressUseKind updateTransitiveLiveness (SSAPrunedLiveness &liveness) const ;
123
123
124
124
// / 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 ;
126
127
127
128
// / Create scope ending instructions at \p liveness boundary.
128
129
void endScopeAtLivenessBoundary (SSAPrunedLiveness *liveness) const ;
Original file line number Diff line number Diff line change @@ -151,16 +151,15 @@ AddressUseKind ScopedAddressValue::updateTransitiveLiveness(
151
151
return addressKind;
152
152
}
153
153
154
- void ScopedAddressValue::createScopeEnd (SILBasicBlock::iterator insertPt,
155
- SILLocation loc) const {
154
+ SILInstruction *
155
+ ScopedAddressValue::createScopeEnd (SILBasicBlock::iterator insertPt,
156
+ SILLocation loc) const {
156
157
switch (kind) {
157
158
case ScopedAddressValueKind::StoreBorrow: {
158
- SILBuilderWithScope (insertPt).createEndBorrow (loc, value);
159
- return ;
159
+ return SILBuilderWithScope (insertPt).createEndBorrow (loc, value);
160
160
}
161
161
case ScopedAddressValueKind::BeginAccess: {
162
- SILBuilderWithScope (insertPt).createEndAccess (loc, value, false );
163
- return ;
162
+ return SILBuilderWithScope (insertPt).createEndAccess (loc, value, false );
164
163
}
165
164
case ScopedAddressValueKind::Invalid:
166
165
llvm_unreachable (" Using invalid case?!" );
You can’t perform that action at this time.
0 commit comments