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.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/passes/MemoryPacking.cpp b/src/passes/MemoryPacking.cpp
index 1a1e87502..eac7fb7f0 100644
--- a/src/passes/MemoryPacking.cpp
+++ b/src/passes/MemoryPacking.cpp
@@ -77,9 +77,8 @@ const size_t DATA_DROP_SIZE = 3;
namespace {
Expression* makeShiftedMemorySize(Builder& builder) {
- return builder.makeBinary(ShlInt32,
- builder.makeHost(MemorySize, Name(), {}),
- builder.makeConst(int32_t(16)));
+ return builder.makeBinary(
+ ShlInt32, builder.makeMemorySize(), builder.makeConst(int32_t(16)));
}
} // anonymous namespace