From 51c04f2cd97c0772f27a06cf121e2ce16f0e8fc0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Julien=20Pag=C3=A8s?= Date: Thu, 18 Jun 2015 15:14:06 +0200 Subject: [PATCH] ssa: Bug fixe with a wrong initialization MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Julien Pagès --- src/ssa.nit | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ssa.nit b/src/ssa.nit index eeeb560..135ccd6 100644 --- a/src/ssa.nit +++ b/src/ssa.nit @@ -706,7 +706,7 @@ redef class AAssertExpr self.n_else.generate_basic_blocks(ssa, block_false) else block_false.first = self - block_false.first = self + block_false.last = self end old_block.link(block_false) @@ -1083,6 +1083,8 @@ redef class AWhileExpr # Create a new Block after the while var new_block = new BasicBlock + new_block.first = self + new_block.last = self new_block.need_update = true old_block.link_special(new_block) @@ -1131,6 +1133,9 @@ redef class AForExpr block.link(old_block) var new_block = new BasicBlock + new_block.first = self + new_block.last = self + new_block.need_update = true return new_block -- 1.7.9.5