diff --git a/src/enzyme_ad/jax/Implementations/StableHLOAutoDiffOpInterfaceImpl.cpp b/src/enzyme_ad/jax/Implementations/StableHLOAutoDiffOpInterfaceImpl.cpp index 7fdd991c8..77fecaf39 100644 --- a/src/enzyme_ad/jax/Implementations/StableHLOAutoDiffOpInterfaceImpl.cpp +++ b/src/enzyme_ad/jax/Implementations/StableHLOAutoDiffOpInterfaceImpl.cpp @@ -240,8 +240,6 @@ class AutoDiffIfRev gutils->popCache(caches[0], builder), orig->getAttrs()); - Location loc = orig->getLoc(); - bool valid = true; for (auto &&[origReg, newReg] : llvm::zip_equal(orig->getRegions(), revOp->getRegions())) {