From f643e80197fbb272baa780050e206104ce55872b Mon Sep 17 00:00:00 2001 From: William Moses Date: Wed, 16 Oct 2024 20:45:02 -0500 Subject: [PATCH] Fix handle sync (#2122) --- enzyme/Enzyme/AdjointGenerator.h | 1 + 1 file changed, 1 insertion(+) diff --git a/enzyme/Enzyme/AdjointGenerator.h b/enzyme/Enzyme/AdjointGenerator.h index 0fcaf2162a8..bc1eab9283e 100644 --- a/enzyme/Enzyme/AdjointGenerator.h +++ b/enzyme/Enzyme/AdjointGenerator.h @@ -6000,6 +6000,7 @@ class AdjointGenerator : public llvm::InstVisitor { eraseIfUnused(call); } + ifound = gutils->invertedPointers.find(&call); if (ifound != gutils->invertedPointers.end()) { auto placeholder = cast(&*ifound->second); if (invertedReturn && invertedReturn != placeholder) {