diff options
| author | Yong He <yonghe@outlook.com> | 2022-11-10 14:19:20 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-10 14:19:20 -0800 |
| commit | 0b05fe33c82ee301c134f5b9a87a596aa47121c8 (patch) | |
| tree | 61869daaf5cad2609efcdf239f31c203d64f39b1 /source/slang/slang-ir-restructure.cpp | |
| parent | 10834e69b1e483be4116d85b00d4bc0b861da822 (diff) | |
Fix inlining pass. (#2506)
* Fix inlining pass.
* Add more check against corner cases.
* Revise comments.
* Fixes.
* Fix premake script.
* Fixes.
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source/slang/slang-ir-restructure.cpp')
| -rw-r--r-- | source/slang/slang-ir-restructure.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-ir-restructure.cpp b/source/slang/slang-ir-restructure.cpp index 7cd33406d..b0f822def 100644 --- a/source/slang/slang-ir-restructure.cpp +++ b/source/slang/slang-ir-restructure.cpp @@ -176,7 +176,8 @@ namespace Slang // if(block != registeredBlock[(int)ll->op]) { - ctx->getSink()->diagnose(block, Diagnostics::multiLevelBreakUnsupported); + if (ctx->getSink()) + ctx->getSink()->diagnose(block, Diagnostics::multiLevelBreakUnsupported); } // Now we need to create a structured `break` or `continue` operation |
