summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-05-30 10:41:34 -0700
committerGitHub <noreply@github.com>2023-05-30 10:41:34 -0700
commit5e1974e8cad3396a8c4bedfd63c1ad31b82ec8eb (patch)
treed47003966c2fd0bc6deb40c5220cc17f0855da78 /source
parent4c1396c3532d6ad4973177d1c97578989385f347 (diff)
Fix derivative signature bug in checkDerivativeAttribute. (#2905)
Diffstat (limited to 'source')
-rw-r--r--source/slang/slang-check-decl.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-check-decl.cpp b/source/slang/slang-check-decl.cpp
index c7a955f06..4e2f146a1 100644
--- a/source/slang/slang-check-decl.cpp
+++ b/source/slang/slang-check-decl.cpp
@@ -7027,7 +7027,8 @@ namespace Slang
List<Expr*> imaginaryArguments;
auto isOutParam = [&](ParamDecl* param)
{
- return param->findModifier<OutModifier>() != nullptr && param->findModifier<InModifier>() == nullptr;
+ return param->findModifier<OutModifier>() != nullptr
+ && param->findModifier<InModifier>() == nullptr && param->findModifier<InOutModifier>() == nullptr;
};
for (auto param : originalFuncDecl->getParameters())