From f4c2b0de41f703aa2000c344484e7cd37db56a32 Mon Sep 17 00:00:00 2001 From: Vincent Isambart Date: Fri, 29 Apr 2022 00:37:58 +0900 Subject: Fix errors when building with the latest Xcode (#2215) * Fix errors when building with the latest Xcode * Bring back unused variable to better match comments Co-authored-by: jsmall-nvidia --- source/slang/slang-ir-deduplicate.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'source/slang/slang-ir-deduplicate.cpp') diff --git a/source/slang/slang-ir-deduplicate.cpp b/source/slang/slang-ir-deduplicate.cpp index 953344850..f2c199af6 100644 --- a/source/slang/slang-ir-deduplicate.cpp +++ b/source/slang/slang-ir-deduplicate.cpp @@ -51,7 +51,6 @@ namespace Slang { DeduplicateContext context; context.builder = this; - bool changed = true; m_constantMap.Clear(); m_globalValueNumberingMap.Clear(); for (auto inst : m_module->getGlobalInsts()) @@ -69,7 +68,6 @@ namespace Slang auto newInst = context.addTypeValue(inst); if (newInst != inst) { - changed = true; inst->replaceUsesWith(newInst); instToRemove.add(inst); } -- cgit v1.2.3