| Index: src/hydrogen-check-elimination.cc
|
| diff --git a/src/hydrogen-check-elimination.cc b/src/hydrogen-check-elimination.cc
|
| index bf549c5b137166baa1eb7aefbb00c60efbdbc87b..701d9654b5037f145fb335c3d2850942de3df277 100644
|
| --- a/src/hydrogen-check-elimination.cc
|
| +++ b/src/hydrogen-check-elimination.cc
|
| @@ -340,8 +340,10 @@ class HCheckTable : public ZoneObject {
|
| // Reduce a load of the map field when it is known to be a constant.
|
| if (!instr->access().IsMap()) {
|
| // Check if we introduce field maps here.
|
| - if (instr->maps()->size() != 0) {
|
| - Insert(instr, instr, instr->maps());
|
| + MapSet maps = instr->maps();
|
| + if (maps != NULL) {
|
| + ASSERT_NE(0, maps->size());
|
| + Insert(instr, NULL, maps);
|
| }
|
| return;
|
| }
|
|
|