summaryrefslogtreecommitdiff
path: root/src/ir
diff options
context:
space:
mode:
Diffstat (limited to 'src/ir')
-rw-r--r--src/ir/ExpressionManipulator.cpp2
-rw-r--r--src/ir/localize.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ir/ExpressionManipulator.cpp b/src/ir/ExpressionManipulator.cpp
index fd0e6fd75..fbee9f9c1 100644
--- a/src/ir/ExpressionManipulator.cpp
+++ b/src/ir/ExpressionManipulator.cpp
@@ -91,7 +91,7 @@ flexibleCopy(Expression* original, Module& wasm, CustomCopier custom) {
}
Expression* visitLocalSet(LocalSet* curr) {
if (curr->isTee()) {
- return builder.makeLocalTee(curr->index, copy(curr->value));
+ return builder.makeLocalTee(curr->index, copy(curr->value), curr->type);
} else {
return builder.makeLocalSet(curr->index, copy(curr->value));
}
diff --git a/src/ir/localize.h b/src/ir/localize.h
index ff454382d..733e7bdec 100644
--- a/src/ir/localize.h
+++ b/src/ir/localize.h
@@ -36,7 +36,7 @@ struct Localizer {
index = set->index;
} else {
index = Builder::addVar(func, expr->type);
- expr = Builder(*wasm).makeLocalTee(index, expr);
+ expr = Builder(*wasm).makeLocalTee(index, expr, expr->type);
}
}
};