mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Rename getEmptyLocation to getCompilerGeneratedLocation
This commit is contained in:
@@ -50,7 +50,7 @@ swift::createIncrementBefore(SILValue Ptr, SILInstruction *InsertPt) {
|
||||
|
||||
// Set up the builder we use to insert at our insertion point.
|
||||
SILBuilder B(InsertPt);
|
||||
auto Loc = getEmptyLocation();
|
||||
auto Loc = getCompilerGeneratedLocation();
|
||||
|
||||
// If Ptr is refcounted itself, create the strong_retain and
|
||||
// return.
|
||||
@@ -75,7 +75,7 @@ swift::createDecrementBefore(SILValue Ptr, SILInstruction *InsertPt) {
|
||||
|
||||
// Setup the builder we will use to insert at our insertion point.
|
||||
SILBuilder B(InsertPt);
|
||||
auto Loc = getEmptyLocation();
|
||||
auto Loc = getCompilerGeneratedLocation();
|
||||
|
||||
// If Ptr has reference semantics itself, create a strong_release.
|
||||
if (Ptr->getType().isReferenceCounted(B.getModule())) {
|
||||
|
||||
Reference in New Issue
Block a user