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-pytorch-cpp-binding.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/slang/slang-ir-pytorch-cpp-binding.cpp') diff --git a/source/slang/slang-ir-pytorch-cpp-binding.cpp b/source/slang/slang-ir-pytorch-cpp-binding.cpp index 3a7e8b9fb..432cd93f3 100644 --- a/source/slang/slang-ir-pytorch-cpp-binding.cpp +++ b/source/slang/slang-ir-pytorch-cpp-binding.cpp @@ -650,7 +650,7 @@ void markTypeForPyExport(IRType* type, DiagnosticSink* sink) String tryGetExportTypeName(IRBuilder* builder, IRType* type) { - if (auto structType = as(type)) + if (as(type)) { if (auto pyExportDecoration = type->findDecoration()) return String(pyExportDecoration->getExportName()); -- cgit v1.2.3