mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Handle mark_dependence in Differentiation
This commit is contained in:
@@ -151,6 +151,12 @@ bool ArrayAllocation::recursivelyCollectUses(ValueBase *Def) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (auto *MDI = dyn_cast<MarkDependenceInst>(User)) {
|
||||
if (Def != MDI->getBase())
|
||||
return false;
|
||||
continue;
|
||||
}
|
||||
|
||||
// Check array semantic calls.
|
||||
ArraySemanticsCall ArrayOp(User);
|
||||
switch (ArrayOp.getKind()) {
|
||||
|
||||
Reference in New Issue
Block a user