From 4ad7b4317d77c161cab69f5ae2b52b1583c96f11 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sun, 26 Jun 2016 10:04:46 -0700 Subject: make makeCallImport more similar to makeCall; do not assume all imports exist, let functions be created in a way independent from global state --- src/ast_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ast_utils.h') diff --git a/src/ast_utils.h b/src/ast_utils.h index c2a3db435..77bfaf1f3 100644 --- a/src/ast_utils.h +++ b/src/ast_utils.h @@ -258,7 +258,7 @@ struct ExpressionManipulator { return ret; } Expression* visitCallImport(CallImport *curr) { - auto* ret = builder.makeCallImport(curr->target, {}); + auto* ret = builder.makeCallImport(curr->target, {}, curr->type); for (Index i = 0; i < curr->operands.size(); i++) { ret->operands.push_back(copy(curr->operands[i])); } -- cgit v1.2.3