diff options
| author | Yong He <yonghe@outlook.com> | 2023-02-27 21:21:39 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-27 21:21:39 -0800 |
| commit | f23e36243e9c59c02f66ec2e18b80ba4ea540f45 (patch) | |
| tree | 6bf0e2a3676fe84067f70fcbda4549fa4eb6504d /source/slang/slang-ir.cpp | |
| parent | 10e2d9c7c532c204f26bb2c9f383f21b121b2ff2 (diff) | |
Diagnose on storing differentiable value into non-differentiable location. (#2681)
Diffstat (limited to 'source/slang/slang-ir.cpp')
| -rw-r--r-- | source/slang/slang-ir.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp index fd211d05c..0aa2dc607 100644 --- a/source/slang/slang-ir.cpp +++ b/source/slang/slang-ir.cpp @@ -7044,6 +7044,7 @@ namespace Slang case kIROp_BackwardDifferentiate: case kIROp_BackwardDifferentiatePrimal: case kIROp_BackwardDifferentiatePropagate: + case kIROp_DetachDerivative: return false; } return true; |
