Remove the redundant SILLocation::getCompilerGenerated interface (NFC)

This commit is contained in:
Adrian Prantl
2018-01-16 15:58:59 -08:00
parent 0665e21afe
commit c74ae5f375
8 changed files with 17 additions and 15 deletions

View File

@@ -2176,9 +2176,9 @@ SILValue LifetimeChecker::handleConditionalInitAssign() {
SILType::getBuiltinIntegerType(NumMemoryElements, Module.getASTContext());
// 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(getCompilerGeneratedLocation(), IVType);
auto *ControlVariableBox = B.createAllocStack(
RegularLocation::getAutoGeneratedLocation(), IVType);
// Find all the return blocks in the function, inserting a dealloc_stack
// before the return.
for (auto &BB : TheMemory.getFunction()) {