summaryrefslogtreecommitdiff
path: root/src/passes/Precompute.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/Precompute.cpp')
-rw-r--r--src/passes/Precompute.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/passes/Precompute.cpp b/src/passes/Precompute.cpp
index d8a1fa9fc..c82a880b1 100644
--- a/src/passes/Precompute.cpp
+++ b/src/passes/Precompute.cpp
@@ -300,7 +300,8 @@ private:
Literals curr;
if (set == nullptr) {
if (getFunction()->isVar(get->index)) {
- curr = Literal::makeZero(getFunction()->getLocalType(get->index));
+ curr =
+ Literal::makeZeros(getFunction()->getLocalType(get->index));
} else {
// it's a param, so it's hopeless
values = {};