From 2ee975cf1b12febca6258463e3def7e96d10599e Mon Sep 17 00:00:00 2001 From: Vassil Vassilev Date: Mon, 20 May 2024 08:49:51 +0300 Subject: [PATCH] Update lib/Differentiator/DerivativeBuilder.cpp --- lib/Differentiator/DerivativeBuilder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Differentiator/DerivativeBuilder.cpp b/lib/Differentiator/DerivativeBuilder.cpp index 9fe899e7b..59adfd7e2 100644 --- a/lib/Differentiator/DerivativeBuilder.cpp +++ b/lib/Differentiator/DerivativeBuilder.cpp @@ -262,7 +262,7 @@ static void registerDerivative(FunctionDecl* derivedFD, Sema& semaRef) { // derivative is not differentiated again using numerical // differentiation due to unavailable definition. if (auto* CE = dyn_cast(OverloadedFn)) - if (auto* FD = CE->getDirectCallee()) + if (FunctionDecl* FD = CE->getDirectCallee()) m_DFC.AddToDerivativeSet(FD); } return OverloadedFn;