diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2023-10-12 01:53:00 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-11 10:53:00 -0700 |
| commit | 459572c36df1aefc5c80ee04e460efbd5c307f4a (patch) | |
| tree | 388315dc422c34a9fcc9e045f6d2a163810421ba /source/slang/slang-ir-loop-unroll.cpp | |
| parent | 61132c7e198fe372fc739ba0a1edbc8efef386d2 (diff) | |
Small warnings and bugs (#3272)
* Correctly use removeTrivialSingleIterationLoops during simplification
* remove unused variables
* Fix invalid fallthrough
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-ir-loop-unroll.cpp')
| -rw-r--r-- | source/slang/slang-ir-loop-unroll.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-loop-unroll.cpp b/source/slang/slang-ir-loop-unroll.cpp index 6970942c9..31715e7b1 100644 --- a/source/slang/slang-ir-loop-unroll.cpp +++ b/source/slang/slang-ir-loop-unroll.cpp @@ -471,7 +471,7 @@ bool unrollLoopsInModule(IRModule* module, DiagnosticSink* sink) for (auto inst : module->getGlobalInsts()) { - if (auto genFunc = as<IRGeneric>(inst)) + if (as<IRGeneric>(inst)) continue; if (auto func = as<IRGlobalValueWithCode>(inst)) |
