Index: src/hydrogen-osr.cc |
diff --git a/src/hydrogen-osr.cc b/src/hydrogen-osr.cc |
index 73fa40a72cff1f58c0f320a749aa2ac42583dc7a..bf6233bb41d91cda9f3f8cf38629b3c78aa1c4a7 100644 |
--- a/src/hydrogen-osr.cc |
+++ b/src/hydrogen-osr.cc |
@@ -117,8 +117,9 @@ void HOsrBuilder::FinishOsrValues() { |
const ZoneList<HPhi*>* phis = osr_loop_entry_->phis(); |
for (int j = 0; j < phis->length(); j++) { |
HPhi* phi = phis->at(j); |
- ASSERT(phi->HasMergedIndex()); |
- osr_values_->at(phi->merged_index())->set_incoming_value(phi); |
+ if (phi->HasMergedIndex()) { |
+ osr_values_->at(phi->merged_index())->set_incoming_value(phi); |
+ } |
} |
} |