mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove the redundant SILLocation::getCompilerGenerated interface (NFC)
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user