summaryrefslogtreecommitdiff
path: root/source/slang/slang-emit-spirv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-emit-spirv.cpp')
-rw-r--r--source/slang/slang-emit-spirv.cpp2
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(