Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index 26b6e290add989c7eae008712e7c3852aa0e4cd4..d400bd86422e1d61901b7bbde4a20c4a472f6fd0 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -186,11 +186,12 @@ bool CodeStubGraphBuilderBase::BuildGraph() { |
} |
} |
- if (!current_block()->IsFinished()) { |
+ if (current_block() != NULL) { |
HReturn* hreturn_instruction = new(zone) HReturn(return_value, |
context_, |
stack_pop_count); |
current_block()->Finish(hreturn_instruction); |
+ set_current_block(NULL); |
} |
return true; |
} |