summaryrefslogtreecommitdiff
path: root/src/ir/memory-utils.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir/memory-utils.h')
-rw-r--r--src/ir/memory-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/memory-utils.h b/src/ir/memory-utils.h
index 13b356ba8..432fed0aa 100644
--- a/src/ir/memory-utils.h
+++ b/src/ir/memory-utils.h
@@ -40,7 +40,7 @@ inline bool flatten(Memory& memory,
if (ensuredSegmentSize > 0) {
assert(module); // must provide a module if ensuring a size.
Builder builder(*module);
- memory.segments.emplace_back(builder.makeConst(Literal(int32_t(0))));
+ memory.segments.emplace_back(builder.makeConst(int32_t(0)));
memory.segments[0].data.resize(ensuredSegmentSize);
}
return true;