From 2e761e571f7b3d3df7ba7407a13b37c81ee4e9eb Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 4 Mar 2016 18:36:05 -0800 Subject: add a finalize() method for blocks --- src/passes/LowerInt64.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/passes/LowerInt64.cpp') diff --git a/src/passes/LowerInt64.cpp b/src/passes/LowerInt64.cpp index 58e56cba6..7af7443e5 100644 --- a/src/passes/LowerInt64.cpp +++ b/src/passes/LowerInt64.cpp @@ -112,7 +112,7 @@ struct LowerInt64 : public Pass { ret->list.push_back(curr); ret->list.push_back(set); ret->list.push_back(low); // so the block returns the low bits - ret->type = i32; + ret->finalize(); fixes[ret] = high; replaceCurrent(ret); } @@ -132,6 +132,7 @@ struct LowerInt64 : public Pass { set->type = value->type; ret->list.push_back(set); } + ret->finalize(); return ret; } -- cgit v1.2.3