From 011d4281647e3a2a3cf0dbdda1fa65cc1b8ed881 Mon Sep 17 00:00:00 2001 From: Yong He Date: Fri, 10 Nov 2023 13:55:14 -0800 Subject: Cleanup builtin arithmetic interfaces. (#3317) * wip: clean up IArithmetic * wip. * Cleanup builtin arithmetic interfaces. * Fix. * Fixes. * Fix. * Fix. * Fix. --------- Co-authored-by: Yong He --- source/slang/slang-check-expr.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source/slang/slang-check-expr.cpp') diff --git a/source/slang/slang-check-expr.cpp b/source/slang/slang-check-expr.cpp index 5ca0af1c9..2f8b28afc 100644 --- a/source/slang/slang-check-expr.cpp +++ b/source/slang/slang-check-expr.cpp @@ -2225,11 +2225,15 @@ namespace Slang { // check the base expression first expr->functionExpr = CheckTerm(expr->functionExpr); + + auto treatAsDifferentiableExpr = m_treatAsDifferentiableExpr; + m_treatAsDifferentiableExpr = nullptr; // Next check the argument expressions for (auto & arg : expr->arguments) { arg = CheckTerm(arg); } + m_treatAsDifferentiableExpr = treatAsDifferentiableExpr; // If we are in a differentiable function, register differential witness tables involved in // this call. -- cgit v1.2.3