summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-parser.cpp')
-rw-r--r--source/slang/slang-parser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-parser.cpp b/source/slang/slang-parser.cpp
index b8310451c..b0af5378c 100644
--- a/source/slang/slang-parser.cpp
+++ b/source/slang/slang-parser.cpp
@@ -5298,6 +5298,7 @@ namespace Slang
auto noDiffExpr = parser->astBuilder->create<TreatAsDifferentiableExpr>();
noDiffExpr->innerExpr = parser->ParseLeafExpression();
noDiffExpr->scope = parser->currentScope;
+ noDiffExpr->flavor = TreatAsDifferentiableExpr::Flavor::NoDiff;
return noDiffExpr;
}