summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-decl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-decl.cpp')
-rw-r--r--source/slang/slang-check-decl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index f016ae3d8..a535ba104 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -6918,6 +6918,8 @@ namespace Slang
// has an associated derivative function.
if (func->findModifier<BackwardDifferentiableAttribute>())
return true;
+ if (func->findModifier<BackwardDerivativeAttribute>())
+ return true;
for (auto assocDecl : getAssociatedDeclsForDecl(func))
{
switch (assocDecl.kind)