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-specialize-resources.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-specialize-resources.cpp')
| -rw-r--r-- | source/slang/slang-ir-specialize-resources.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-specialize-resources.cpp b/source/slang/slang-ir-specialize-resources.cpp index 95dc39729..bb3d59bf2 100644 --- a/source/slang/slang-ir-specialize-resources.cpp +++ b/source/slang/slang-ir-specialize-resources.cpp @@ -1243,7 +1243,7 @@ bool isIllegalSPIRVParameterType(IRType* type) // If we are emitting SPIRV direclty, we need to specialize // all Texture types. - if (auto texType = as<IRTextureType>(type)) + if (as<IRTextureType>(type)) return true; return false; } |
