| Index: runtime/vm/il_printer.cc
|
| diff --git a/runtime/vm/il_printer.cc b/runtime/vm/il_printer.cc
|
| index bf594de0a8710ad5df19cb3291d86f517aec06fb..833c1fe8a613ff9bec0bb07915cc9155caa08c84 100644
|
| --- a/runtime/vm/il_printer.cc
|
| +++ b/runtime/vm/il_printer.cc
|
| @@ -775,7 +775,9 @@ 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 ((i < locations_.length()) && !locations_[i].IsInvalid()) {
|
| + if ((locations_ != NULL) &&
|
| + (i < location_count_) &&
|
| + !locations_[i].IsInvalid()) {
|
| f->Print(" [");
|
| locations_[i].PrintTo(f);
|
| f->Print("]");
|
|
|