diff options
| author | Yong He <yonghe@outlook.com> | 2023-03-23 11:37:29 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-23 11:37:29 -0700 |
| commit | 85f005888cadeb4b1d957b57a86cbad6cc9ea313 (patch) | |
| tree | f227827398e1be0765df9478c6f78b4bb524e1b4 /source/slang/slang-emit-c-like.cpp | |
| parent | 34acec2258ef1586564fe51126b25910b3202541 (diff) | |
Fix scope fixing for address insts. (#2724)
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-emit-c-like.cpp')
| -rw-r--r-- | source/slang/slang-emit-c-like.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp index a31c16505..356f1c7ce 100644 --- a/source/slang/slang-emit-c-like.cpp +++ b/source/slang/slang-emit-c-like.cpp @@ -2835,7 +2835,7 @@ void CLikeSourceEmitter::emitFunctionBody(IRGlobalValueWithCode* code) // storage for derived structures like the region tree (and logic // for invalidating them when a transformation would break them). // - fixValueScoping(regionTree); + fixValueScoping(regionTree, [this](IRInst* inst) {return shouldFoldInstIntoUseSites(inst); }); // Now emit high-level code from that structured region tree. // |
