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) {
687687// / The two relevant cases are a direct load from a promoted address argument or
688688// / a load of a struct_element_addr of a promoted address argument.
689689void ClosureCloner::visitLoadBorrowInst (LoadBorrowInst *lbi) {
690+ getBuilder ().setCurrentDebugScope (getOpScope (lbi->getDebugScope ()));
690691 assert (lbi->getFunction ()->hasOwnership () &&
691692 " We should only see a load borrow in ownership qualified SIL" );
692693 if (SILValue value = getProjectBoxMappedVal (lbi->getOperand ())) {
@@ -729,6 +730,7 @@ void ClosureCloner::visitLoadBorrowInst(LoadBorrowInst *lbi) {
729730// / The two relevant cases are a direct load from a promoted address argument or
730731// / a load of a struct_element_addr of a promoted address argument.
731732void ClosureCloner::visitLoadInst (LoadInst *li) {
733+ getBuilder ().setCurrentDebugScope (getOpScope (li->getDebugScope ()));
732734 if (SILValue value = getProjectBoxMappedVal (li->getOperand ())) {
733735 // Loads of the address argument get eliminated completely; the uses of
734736 // the loads get mapped to uses of the new object type argument.
You can’t perform that action at this time.
0 commit comments