mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Support mark_dependence_addr in SIL passes.
This commit is contained in:
@@ -471,7 +471,7 @@ bool COWArrayOpt::checkSafeArrayAddressUses(UserList &AddressUsers) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (isa<MarkDependenceInst>(UseInst)) {
|
||||
if (MarkDependenceInstruction(UseInst)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -569,8 +569,9 @@ bool COWArrayOpt::checkSafeArrayValueUses(UserList &ArrayValueUsers) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (isa<MarkDependenceInst>(UseInst))
|
||||
if (MarkDependenceInstruction(UseInst)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (isa<EndBorrowInst>(UseInst))
|
||||
continue;
|
||||
@@ -638,8 +639,9 @@ bool COWArrayOpt::checkSafeArrayElementUse(SILInstruction *UseInst,
|
||||
//
|
||||
// The struct_extract, unchecked_ref_cast is handled below in the
|
||||
// "Transitive SafeArrayElementUse" code.
|
||||
if (isa<MarkDependenceInst>(UseInst))
|
||||
if (MarkDependenceInstruction(UseInst)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (isa<EndBorrowInst>(UseInst))
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user