diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/passes/Heap2Local.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/passes/Heap2Local.cpp b/src/passes/Heap2Local.cpp index 7aec23ccf..720ebba40 100644 --- a/src/passes/Heap2Local.cpp +++ b/src/passes/Heap2Local.cpp @@ -745,9 +745,9 @@ struct Struct2Local : PostWalker<Struct2Local> { // not escape to any other place. int32_t result = analyzer.reached.count(curr->left) > 0 && analyzer.reached.count(curr->right) > 0; - // For simplicity, simply drop the RefEq and put a constant result after. - replaceCurrent(builder.makeSequence(builder.makeDrop(curr), - builder.makeConst(Literal(result)))); + replaceCurrent(builder.makeBlock({builder.makeDrop(curr->left), + builder.makeDrop(curr->right), + builder.makeConst(Literal(result))})); } void visitRefAs(RefAs* curr) { |