From aa541128965297ff5d428a656bb421c4bb22bb3b Mon Sep 17 00:00:00 2001 From: Alexander Penev Date: Sat, 5 Oct 2024 18:05:31 +0000 Subject: [PATCH] Fix 3 --- lib/Differentiator/ReverseModeVisitor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Differentiator/ReverseModeVisitor.cpp b/lib/Differentiator/ReverseModeVisitor.cpp index a40584d31..240919008 100644 --- a/lib/Differentiator/ReverseModeVisitor.cpp +++ b/lib/Differentiator/ReverseModeVisitor.cpp @@ -455,11 +455,13 @@ Expr* getArraySizeExpr(const ArrayType* AT, ASTContext& context, Stmt* gradientBody = nullptr; +#ifdef CLAD_ENABLE_ENZYME_BACKEND if (!m_DiffReq.use_enzyme) DifferentiateWithClad(); -#ifdef CLAD_ENABLE_ENZYME_BACKEND else DifferentiateWithEnzyme(); +#else + DifferentiateWithClad(); #endif gradientBody = endBlock();