Skip to content

Commit ee38655

Browse files
committed
SILOptimizer: Handle alloc_pack in StackNesting
1 parent 64569a2 commit ee38655

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/SILOptimizer/Utils/StackNesting.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,8 @@ static SILInstruction *createDealloc(SingleValueInstruction *Alloc,
193193
case SILInstructionKind::AllocRefInst:
194194
assert(cast<AllocRefInstBase>(Alloc)->canAllocOnStack());
195195
return B.createDeallocStackRef(Location, Alloc);
196+
case SILInstructionKind::AllocPackInst:
197+
return B.createDeallocPack(Location, Alloc);
196198
default:
197199
llvm_unreachable("unknown stack allocation");
198200
}

0 commit comments

Comments
 (0)