[NFC] SIL: Typed alloc_stack's isLexical.

This commit is contained in:
Nate Chandler
2024-03-08 14:41:49 -08:00
parent ec6b447b68
commit c6eb3112b5
12 changed files with 36 additions and 29 deletions

View File

@@ -699,9 +699,9 @@ void SILGenFunction::emitCaptures(SILLocation loc,
assert(!isPack);
auto addr = emitTemporaryAllocation(vd, entryValue->getType(),
DoesNotHaveDynamicLifetime, false,
/*generateDebugInfo*/ false);
auto addr = emitTemporaryAllocation(
vd, entryValue->getType(), DoesNotHaveDynamicLifetime, IsNotLexical,
/*generateDebugInfo*/ false);
auto val = B.emitCopyValueOperation(loc, entryValue);
auto &lowering = getTypeLowering(entryValue->getType());
lowering.emitStore(B, loc, val, addr, StoreOwnershipQualifier::Init);