Skip to content

Commit db74433

Browse files
authored
Fix needs cached check (EnzymeAD#2668)
1 parent 38754aa commit db74433

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

enzyme/Enzyme/GradientUtils.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9970,6 +9970,10 @@ bool GradientUtils::needsCacheWholeAllocation(
99709970
returnedSameValue = true;
99719971
}
99729972
}
9973+
} else {
9974+
// Either this is the called function, or this is a jlrooted, either way
9975+
// continue.
9976+
continue;
99739977
}
99749978
}
99759979

0 commit comments

Comments
 (0)