diff options
Diffstat (limited to 'source/slang/slang-check-overload.cpp')
| -rw-r--r-- | source/slang/slang-check-overload.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-check-overload.cpp b/source/slang/slang-check-overload.cpp index 91af731ad..f786089f8 100644 --- a/source/slang/slang-check-overload.cpp +++ b/source/slang/slang-check-overload.cpp @@ -1549,7 +1549,7 @@ namespace Slang // Base is a normal or fully specialized generic function. OverloadCandidate candidate; candidate.flavor = OverloadCandidate::Flavor::Expr; - if (auto diffExpr = as<DifferentiateExpr>(expr)) + if (auto diffExpr = as<HigherOrderInvokeExpr>(expr)) { candidate.funcType = as<FuncType>(diffExpr->type.type); } |
