From 83e0dde16f381b28c1ee0d099de25444b0f34e58 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Mon, 22 Aug 2016 14:58:38 -0700 Subject: fix AutoDrop block handling - the block type might change as we modify its contents --- src/ast_utils.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ast_utils.h') diff --git a/src/ast_utils.h b/src/ast_utils.h index f68f776af..2be0196ad 100644 --- a/src/ast_utils.h +++ b/src/ast_utils.h @@ -808,6 +808,7 @@ struct AutoDrop : public WalkerPasslist.back() = Builder(*getModule()).makeDrop(last); } expressionStack.pop_back(); + curr->finalize(); // we may have changed our type } void visitFunction(Function* curr) { -- cgit v1.2.3