Skip to content

Commit bea8e12

Browse files
committed
PredictableMemOpt: fix a wrong debug info location type
Fixes a crash in the debug info verification rdar://106594725
1 parent f824ca1 commit bea8e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Mandatory/PredictableMemOpt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ void AvailableValueAggregator::addMissingDestroysForCopiedValues(
13011301
// Otherwise, we need to insert one last destroy after the load for our phi.
13021302
auto next = std::next(load->getIterator());
13031303
SILBuilderWithScope builder(next);
1304-
builder.emitDestroyValueOperation(next->getLoc(), cvi);
1304+
builder.emitDestroyValueOperation(RegularLocation(next->getLoc()), cvi);
13051305
}
13061306
}
13071307

0 commit comments

Comments
 (0)