diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-03-02 04:43:26 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-01 12:43:26 -0800 |
| commit | a4ba7d63e3035895b8081387b49a52b0fda53424 (patch) | |
| tree | c21666eff58bc41aa93b61e30c58628044275142 /source/slang/slang-emit-spirv.cpp | |
| parent | 0d01b3701aae582b5fe3b6e2c2c718bec568c741 (diff) | |
warnings (#3653)
* Remove unused code
* unused variable warnings
* unused variable
---------
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
| -rw-r--r-- | source/slang/slang-emit-spirv.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-emit-spirv.cpp b/source/slang/slang-emit-spirv.cpp index d81ceae81..dd417e38f 100644 --- a/source/slang/slang-emit-spirv.cpp +++ b/source/slang/slang-emit-spirv.cpp @@ -5088,7 +5088,7 @@ struct SPIRVEmitContext return ensureInst(m_voidType); IRBuilder builder(type); - if (auto funcType = as<IRFuncType>(type)) + if (const auto funcType = as<IRFuncType>(type)) { List<SpvInst*> argTypes; return emitOpDebugTypeFunction( |
