diff options
| author | Yong He <yonghe@outlook.com> | 2023-11-10 13:55:14 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-10 13:55:14 -0800 |
| commit | 011d4281647e3a2a3cf0dbdda1fa65cc1b8ed881 (patch) | |
| tree | 70f91655e86d30529eda0a683e15f378eeae2cb5 /source/slang/slang-check-expr.cpp | |
| parent | bfd3f39d04047d7a46e75206cd125ed87b3f3f99 (diff) | |
Cleanup builtin arithmetic interfaces. (#3317)
* wip: clean up IArithmetic
* wip.
* Cleanup builtin arithmetic interfaces.
* Fix.
* Fixes.
* Fix.
* Fix.
* Fix.
---------
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.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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. |
