summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check-expr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check-expr.cpp')
-rw-r--r--source/slang/slang-check-expr.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp
index 336682bf4..1ffc45fbd 100644
--- a/source/slang/slang-check-expr.cpp
+++ b/source/slang/slang-check-expr.cpp
@@ -2136,9 +2136,9 @@ namespace Slang
type->paramTypes.add(derivType);
}
}
-
+
// Last parameter is the initial derivative of the original return type
- type->paramTypes.add(originalType->resultType);
+ type->paramTypes.add(getDifferentialType(m_astBuilder, originalType->resultType, SourceLoc()));
return type;
}