@@ -1983,8 +1983,9 @@ SILValue swift::makeCopiedValueAvailable(SILValue value, SILBasicBlock *inBlock)
1983
1983
return value;
1984
1984
1985
1985
auto insertPt = getInsertAfterPoint (value).getValue ();
1986
- auto *copy =
1987
- SILBuilderWithScope (insertPt).createCopyValue (insertPt->getLoc (), value);
1986
+ SILBuilderWithScope builder (insertPt);
1987
+ auto *copy = builder.createCopyValue (
1988
+ RegularLocation::getAutoGeneratedLocation (), value);
1988
1989
1989
1990
return makeNewValueAvailable (copy, inBlock);
1990
1991
}
@@ -2009,13 +2010,15 @@ SILValue swift::makeNewValueAvailable(SILValue value, SILBasicBlock *inBlock) {
2009
2010
assert (loopBlock == inBlock);
2010
2011
auto front = loopBlock->begin ();
2011
2012
SILBuilderWithScope newBuilder (front);
2012
- controlEqCopy = newBuilder.createCopyValue (front->getLoc (), value);
2013
+ controlEqCopy = newBuilder.createCopyValue (
2014
+ RegularLocation::getAutoGeneratedLocation (), value);
2013
2015
},
2014
2016
[&](SILBasicBlock *postDomBlock) {
2015
2017
// Insert a destroy_value in the leaking block
2016
2018
auto front = postDomBlock->begin ();
2017
2019
SILBuilderWithScope newBuilder (front);
2018
- newBuilder.createDestroyValue (front->getLoc (), value);
2020
+ newBuilder.createDestroyValue (
2021
+ RegularLocation::getAutoGeneratedLocation (), value);
2019
2022
});
2020
2023
2021
2024
return controlEqCopy ? controlEqCopy : value;
0 commit comments