File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
lib/SILOptimizer/Mandatory Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -687,6 +687,7 @@ void ClosureCloner::visitEndAccessInst(EndAccessInst *eai) {
687
687
// / The two relevant cases are a direct load from a promoted address argument or
688
688
// / a load of a struct_element_addr of a promoted address argument.
689
689
void ClosureCloner::visitLoadBorrowInst (LoadBorrowInst *lbi) {
690
+ getBuilder ().setCurrentDebugScope (getOpScope (lbi->getDebugScope ()));
690
691
assert (lbi->getFunction ()->hasOwnership () &&
691
692
" We should only see a load borrow in ownership qualified SIL" );
692
693
if (SILValue value = getProjectBoxMappedVal (lbi->getOperand ())) {
@@ -729,6 +730,7 @@ void ClosureCloner::visitLoadBorrowInst(LoadBorrowInst *lbi) {
729
730
// / The two relevant cases are a direct load from a promoted address argument or
730
731
// / a load of a struct_element_addr of a promoted address argument.
731
732
void ClosureCloner::visitLoadInst (LoadInst *li) {
733
+ getBuilder ().setCurrentDebugScope (getOpScope (li->getDebugScope ()));
732
734
if (SILValue value = getProjectBoxMappedVal (li->getOperand ())) {
733
735
// Loads of the address argument get eliminated completely; the uses of
734
736
// the loads get mapped to uses of the new object type argument.
You can’t perform that action at this time.
0 commit comments