summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-redundancy-removal.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-redundancy-removal.cpp')
-rw-r--r--source/slang/slang-ir-redundancy-removal.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-redundancy-removal.cpp b/source/slang/slang-ir-redundancy-removal.cpp
index 227ef1d4d..bac39a53c 100644
--- a/source/slang/slang-ir-redundancy-removal.cpp
+++ b/source/slang/slang-ir-redundancy-removal.cpp
@@ -254,7 +254,7 @@ bool tryRemoveRedundantStore(IRGlobalValueWithCode* func, IRStore* store)
{
bool hasNonStoreUse = false;
// If the entire access chain doesn't non-store use, we can safely remove it.
- HashSet<IRInst*> knownAccessChain;
+ InstHashSet knownAccessChain(func->getModule());
for (auto accessChain = store->getPtr(); accessChain;)
{
knownAccessChain.add(accessChain);