summaryrefslogtreecommitdiff
path: root/src/passes/MemoryPacking.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/MemoryPacking.cpp')
-rw-r--r--src/passes/MemoryPacking.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/MemoryPacking.cpp b/src/passes/MemoryPacking.cpp
index ef150e2de..704f57d89 100644
--- a/src/passes/MemoryPacking.cpp
+++ b/src/passes/MemoryPacking.cpp
@@ -32,7 +32,7 @@ struct MemoryPacking : public Pass {
// avoid invalidating segment indices or segment contents referenced from
// memory.init instructions.
// TODO: optimize in the presence of memory.init instructions
- if (!module->memory.exists || runner->options.features.hasBulkMemory()) {
+ if (!module->memory.exists || module->features.hasBulkMemory()) {
return;
}