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

@@ -2177,7 +2177,7 @@ SILValue LifetimeChecker::handleConditionalInitAssign() {
// Use an empty location for the alloc_stack. If Loc is variable declaration
// the alloc_stack would look like the storage of that variable.
auto *ControlVariableBox =
B.createAllocStack(getEmptyLocation(), IVType);
B.createAllocStack(getCompilerGeneratedLocation(), IVType);
// Find all the return blocks in the function, inserting a dealloc_stack
// before the return.