mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/main' into rebranch
This commit is contained in:
@@ -247,6 +247,7 @@ void COWOptsPass::collectEscapePoints(SILValue v,
|
||||
case SILInstructionKind::BeginCOWMutationInst:
|
||||
case SILInstructionKind::RefElementAddrInst:
|
||||
case SILInstructionKind::RefTailAddrInst:
|
||||
case SILInstructionKind::DebugValueInst:
|
||||
break;
|
||||
case SILInstructionKind::BranchInst:
|
||||
collectEscapePoints(cast<BranchInst>(user)->getArgForOperand(use),
|
||||
|
||||
@@ -36,6 +36,7 @@ sil @test_simple : $@convention(thin) (@owned Buffer) -> (Int, Builtin.Int1, @ow
|
||||
bb0(%0 : $Buffer):
|
||||
%e = end_cow_mutation %0 : $Buffer
|
||||
%addr = ref_element_addr [immutable] %e : $Buffer, #Buffer.i
|
||||
debug_value %e : $Buffer, var, name "x"
|
||||
%i = load %addr : $*Int
|
||||
(%u, %b) = begin_cow_mutation %e : $Buffer
|
||||
%t = tuple (%i : $Int, %u : $Builtin.Int1, %b : $Buffer)
|
||||
|
||||
Reference in New Issue
Block a user