From 459572c36df1aefc5c80ee04e460efbd5c307f4a Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 12 Oct 2023 01:53:00 +0800 Subject: Small warnings and bugs (#3272) * Correctly use removeTrivialSingleIterationLoops during simplification * remove unused variables * Fix invalid fallthrough --------- Co-authored-by: Yong He --- source/slang/slang-ir-specialize-resources.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-ir-specialize-resources.cpp') 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(type)) + if (as(type)) return true; return false; } -- cgit v1.2.3