| Index: src/hydrogen-representation-changes.cc
|
| diff --git a/src/hydrogen-representation-changes.cc b/src/hydrogen-representation-changes.cc
|
| index bfc8271a9b694762bc6bd18407c56bc02d9385db..33adf5aa9aa2bd74201a95474cf147f0e59fc296 100644
|
| --- a/src/hydrogen-representation-changes.cc
|
| +++ b/src/hydrogen-representation-changes.cc
|
| @@ -29,7 +29,7 @@ void HRepresentationChangesPhase::InsertRepresentationChangeForUse(
|
| // Try to create a new copy of the constant with the new representation.
|
| if (is_truncating_to_int && to.IsInteger32()) {
|
| Maybe<HConstant*> res = constant->CopyToTruncatedInt32(graph()->zone());
|
| - if (res.has_value) new_value = res.value;
|
| + if (res.IsJust()) new_value = res.FromJust();
|
| } else {
|
| new_value = constant->CopyToRepresentation(to, graph()->zone());
|
| }
|
|
|