Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index f81f5f0667f83289c946547758452e852e24ba5c..4607a364e4b3288ee1477da1638141e8b30246e5 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -599,6 +599,9 @@ void HInstruction::InsertAfter(HInstruction* previous) { |
SetBlock(block); |
previous->next_ = this; |
if (next != NULL) next->previous_ = this; |
+ if (block->last() == previous) { |
+ block->set_last(this); |
+ } |
} |