From f9b1c565abbfc93bf2c8d4742f3db13e07db5e62 Mon Sep 17 00:00:00 2001 From: Yong He Date: Thu, 27 Oct 2022 14:38:44 -0700 Subject: More renaming in jvp pass. (#2475) Co-authored-by: Yong He --- source/slang/slang-ir-diff-call.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source/slang/slang-ir-diff-call.cpp') diff --git a/source/slang/slang-ir-diff-call.cpp b/source/slang/slang-ir-diff-call.cpp index 34e7e3de0..a574d6b7e 100644 --- a/source/slang/slang-ir-diff-call.cpp +++ b/source/slang/slang-ir-diff-call.cpp @@ -62,9 +62,9 @@ struct DerivativeCallProcessContext // if (auto origSpecialize = as(origCallable)) { - if (auto jvpSpecRefDecorator = origSpecialize->findDecoration()) + if (auto jvpSpecRefDecorator = origSpecialize->findDecoration()) { - jvpCallable = jvpSpecRefDecorator->getJVPFunc(); + jvpCallable = jvpSpecRefDecorator->getForwardDerivativeFunc(); } } @@ -73,9 +73,9 @@ struct DerivativeCallProcessContext // Check for the 'JVPDerivativeReference' decorator on the // base function. // - if (auto jvpRefDecorator = origCallable->findDecoration()) + if (auto jvpRefDecorator = origCallable->findDecoration()) { - jvpCallable = jvpRefDecorator->getJVPFunc(); + jvpCallable = jvpRefDecorator->getForwardDerivativeFunc(); } SLANG_ASSERT(jvpCallable); -- cgit v1.2.3