Index: runtime/vm/il_printer.cc |
diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc |
index a06589eb0c26b42c08c640de1f52feec99f87e16..bf84dc4803af79f400ff89691dd40837e50fd5f7 100644 |
--- a/runtime/vm/il_printer.cc |
+++ b/runtime/vm/il_printer.cc |
@@ -775,9 +775,7 @@ void Environment::PrintTo(BufferFormatter* f) const { |
for (intptr_t i = 0; i < values_.length(); ++i) { |
if (i > 0) f->Print(", "); |
values_[i]->PrintTo(f); |
- if ((locations_ != NULL) && |
- (i < location_count_) && |
- !locations_[i].IsInvalid()) { |
+ if ((locations_ != NULL) && !locations_[i].IsInvalid()) { |
f->Print(" ["); |
locations_[i].PrintTo(f); |
f->Print("]"); |