diff options
Diffstat (limited to 'source/slang/slang-ir-diff-call.cpp')
| -rw-r--r-- | source/slang/slang-ir-diff-call.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
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<IRSpecialize>(origCallable)) { - if (auto jvpSpecRefDecorator = origSpecialize->findDecoration<IRJVPDerivativeReferenceDecoration>()) + if (auto jvpSpecRefDecorator = origSpecialize->findDecoration<IRForwardDerivativeDecoration>()) { - 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<IRJVPDerivativeReferenceDecoration>()) + if (auto jvpRefDecorator = origCallable->findDecoration<IRForwardDerivativeDecoration>()) { - jvpCallable = jvpRefDecorator->getJVPFunc(); + jvpCallable = jvpRefDecorator->getForwardDerivativeFunc(); } SLANG_ASSERT(jvpCallable); |
