mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SILGen] Allocs for VDs are var_decl.
Annotate alloc_stack instructions that correspond to VarDecls with the var_decl flag.
This commit is contained in:
@@ -699,9 +699,10 @@ void SILGenFunction::emitCaptures(SILLocation loc,
|
||||
|
||||
assert(!isPack);
|
||||
|
||||
auto addr = emitTemporaryAllocation(
|
||||
vd, entryValue->getType(), DoesNotHaveDynamicLifetime, IsNotLexical,
|
||||
/*generateDebugInfo*/ false);
|
||||
auto addr = emitTemporaryAllocation(vd, entryValue->getType(),
|
||||
DoesNotHaveDynamicLifetime,
|
||||
IsNotLexical, IsNotFromVarDecl,
|
||||
/*generateDebugInfo*/ false);
|
||||
auto val = B.emitCopyValueOperation(loc, entryValue);
|
||||
auto &lowering = getTypeLowering(entryValue->getType());
|
||||
lowering.emitStore(B, loc, val, addr, StoreOwnershipQualifier::Init);
|
||||
|
||||
Reference in New Issue
Block a user