summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-pytorch-cpp-binding.cpp
diff options
context:
space:
mode:
authorEllie Hermaszewska <ellieh@nvidia.com>2023-10-12 01:53:00 +0800
committerGitHub <noreply@github.com>2023-10-11 10:53:00 -0700
commit459572c36df1aefc5c80ee04e460efbd5c307f4a (patch)
tree388315dc422c34a9fcc9e045f6d2a163810421ba /source/slang/slang-ir-pytorch-cpp-binding.cpp
parent61132c7e198fe372fc739ba0a1edbc8efef386d2 (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-pytorch-cpp-binding.cpp')
-rw-r--r--source/slang/slang-ir-pytorch-cpp-binding.cpp2
1 files changed, 1 insertions, 1 deletions
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<IRStructType>(type))
+ if (as<IRStructType>(type))
{
if (auto pyExportDecoration = type->findDecoration<IRPyExportDecoration>())
return String(pyExportDecoration->getExportName());