Index: src/compiler/load-elimination.cc |
diff --git a/src/compiler/load-elimination.cc b/src/compiler/load-elimination.cc |
index 957859a94c5978f73522cb5e0bcedffc32e697bb..7c965bde92251a48e2633ae1d368324c064adfcf 100644 |
--- a/src/compiler/load-elimination.cc |
+++ b/src/compiler/load-elimination.cc |
@@ -216,7 +216,8 @@ LoadElimination::AbstractElements::Kill(Node* object, Node* index, |
DCHECK_NOT_NULL(element.index); |
DCHECK_NOT_NULL(element.value); |
if (!MayAlias(object, element.object) || |
- !MayAlias(index, element.index)) { |
+ !NodeProperties::GetType(index)->Maybe( |
+ NodeProperties::GetType(element.index))) { |
that->elements_[that->next_index_++] = element; |
} |
} |