Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index f698da46d41f078aad24b2a1a1ec5eabc6acaa0b..3231704fa7cc67b08310e24ec6750bb4b143480e 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); |
+ } |
} |