Treat is_unique as a read in LoadBorrowImmutabilityChecker

This commit is contained in:
Meghana Gupta
2021-01-26 14:17:20 -08:00
parent 3efa18fd1c
commit dc9d1327df
2 changed files with 15 additions and 0 deletions

View File

@@ -97,6 +97,7 @@ bool GatherWritesVisitor::visitUse(Operand *op, AccessUseType useTy) {
case SILInstructionKind::DeallocBoxInst:
case SILInstructionKind::WitnessMethodInst:
case SILInstructionKind::ExistentialMetatypeInst:
case SILInstructionKind::IsUniqueInst:
return true;
// Known writes...