summaryrefslogtreecommitdiff
path: root/source/slang/slang-check-expr.cpp
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-01-30 20:03:46 -0800
committerGitHub <noreply@github.com>2023-01-30 20:03:46 -0800
commit77cdbb2101f4e27bf1800d4bc1077c0510668c25 (patch)
tree418ea6776aaa6a65364ba6de9ec3e6c63d1c4c5a /source/slang/slang-check-expr.cpp
parent499b0253c224e68ceed6e5b6b1ee9cd7d65aad0f (diff)
Add transposition logic for constructor opcodes. (#2618)
* Add transposition logic for constructor opcodes. * Fix. * Add language server regression test. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-check-expr.cpp')
-rw-r--r--source/slang/slang-check-expr.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp
index d99114e4f..b89eb85c4 100644
--- a/source/slang/slang-check-expr.cpp
+++ b/source/slang/slang-check-expr.cpp
@@ -2314,6 +2314,7 @@ namespace Slang
{
resultDiffExpr->type = semantics->getASTBuilder()->getErrorType();
semantics->getSink()->diagnose(funcExpr, Diagnostics::expectedFunction, funcExpr->type.type);
+ return;
}
resultDiffExpr->type = semantics->getBackwardDiffFuncType(baseFuncType);
if (auto declRefExpr = as<DeclRefExpr>(getInnerMostExprFromHigherOrderExpr(funcExpr)))