Skip to content

Commit f2d9bc7

Browse files
committed
Add dealloc_stack_ref as a non-write in LoadBorrowImmutabilityAnalysis
1 parent df66f27 commit f2d9bc7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/SIL/Verifier/LoadBorrowImmutabilityChecker.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ bool GatherWritesVisitor::visitUse(Operand *op, AccessUseType useTy) {
9494
case SILInstructionKind::SelectEnumAddrInst:
9595
case SILInstructionKind::SwitchEnumAddrInst:
9696
case SILInstructionKind::DeallocStackInst:
97+
case SILInstructionKind::DeallocStackRefInst:
9798
case SILInstructionKind::DeallocBoxInst:
9899
case SILInstructionKind::WitnessMethodInst:
99100
case SILInstructionKind::ExistentialMetatypeInst:

0 commit comments

Comments
 (0)