| Index: src/compiler/simplified-lowering.cc
|
| diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc
|
| index b3050719883c0467bf97f8d0610e494a3142c014..f0d1241559975b02a02904a6f2dbbaeb7d2a3bc9 100644
|
| --- a/src/compiler/simplified-lowering.cc
|
| +++ b/src/compiler/simplified-lowering.cc
|
| @@ -124,6 +124,11 @@ class RepresentationSelector {
|
| Node* node = *i;
|
| Node* replacement = *(++i);
|
| node->ReplaceUses(replacement);
|
| + // We also need to replace the node in the rest of the vector.
|
| + for (NodeVector::iterator j = i + 1; j != replacements_.end(); ++j) {
|
| + ++j;
|
| + if (*j == node) *j = replacement;
|
| + }
|
| }
|
| }
|
|
|
|
|