Skip to content

Commit

Permalink
Fix handle sync (#2122)
Browse files Browse the repository at this point in the history
  • Loading branch information
wsmoses authored Oct 17, 2024
1 parent f085ac8 commit f643e80
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions enzyme/Enzyme/AdjointGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -6000,6 +6000,7 @@ class AdjointGenerator : public llvm::InstVisitor<AdjointGenerator> {
eraseIfUnused(call);
}

ifound = gutils->invertedPointers.find(&call);
if (ifound != gutils->invertedPointers.end()) {
auto placeholder = cast<PHINode>(&*ifound->second);
if (invertedReturn && invertedReturn != placeholder) {
Expand Down

0 comments on commit f643e80

Please sign in to comment.