Rename getEmptyLocation to getCompilerGeneratedLocation

This commit is contained in:
Vedant Kumar
2018-01-09 12:38:45 -08:00
parent e33f3b663d
commit d60ff05265
7 changed files with 20 additions and 14 deletions

View File

@@ -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())) {