@@ -1219,7 +1219,7 @@ void AvailableValueAggregator::addHandOffCopyDestroysForPhis(
1219
1219
// Otherwise, we need to insert one last destroy after the load for our phi.
1220
1220
auto next = std::next (load->getIterator ());
1221
1221
SILBuilderWithScope builder (next);
1222
- builder.emitDestroyValueOperation (next->getLoc (), phi);
1222
+ builder.emitDestroyValueOperation (RegularLocation ( next->getLoc () ), phi);
1223
1223
}
1224
1224
1225
1225
// Alright! In summary, we just lifetime extended all of our phis,
@@ -1251,7 +1251,7 @@ void AvailableValueAggregator::addMissingDestroysForCopiedValues(
1251
1251
assert (li->getParent () == load->getParent ());
1252
1252
auto next = std::next (load->getIterator ());
1253
1253
SILBuilderWithScope builder (next);
1254
- builder.emitDestroyValueOperation (next->getLoc (), li);
1254
+ builder.emitDestroyValueOperation (RegularLocation ( next->getLoc () ), li);
1255
1255
continue ;
1256
1256
}
1257
1257
}
@@ -1301,7 +1301,7 @@ void AvailableValueAggregator::addMissingDestroysForCopiedValues(
1301
1301
// Otherwise, we need to insert one last destroy after the load for our phi.
1302
1302
auto next = std::next (load->getIterator ());
1303
1303
SILBuilderWithScope builder (next);
1304
- builder.emitDestroyValueOperation (next->getLoc (), cvi);
1304
+ builder.emitDestroyValueOperation (RegularLocation ( next->getLoc () ), cvi);
1305
1305
}
1306
1306
}
1307
1307
0 commit comments