| Index: src/compiler/change-lowering.cc
|
| diff --git a/src/compiler/change-lowering.cc b/src/compiler/change-lowering.cc
|
| index cf18e6291c35e5b233ccadfc10792ebb3efa57c1..b36e0bbe4402947b2010d468e97e2abcb8275d7a 100644
|
| --- a/src/compiler/change-lowering.cc
|
| +++ b/src/compiler/change-lowering.cc
|
| @@ -102,11 +102,10 @@ Node* ChangeLowering::LoadHeapNumberValue(Node* value, Node* control) {
|
|
|
|
|
| Reduction ChangeLowering::ChangeBitToBool(Node* val, Node* control) {
|
| - Diamond d(graph(), common(), val);
|
| - d.Chain(control);
|
| - MachineType machine_type = static_cast<MachineType>(kTypeBool | kRepTagged);
|
| - return Replace(d.Phi(machine_type, jsgraph()->TrueConstant(),
|
| - jsgraph()->FalseConstant()));
|
| + MachineType const type = static_cast<MachineType>(kTypeBool | kRepTagged);
|
| + return Replace(graph()->NewNode(common()->Select(type), val,
|
| + jsgraph()->TrueConstant(),
|
| + jsgraph()->FalseConstant()));
|
| }
|
|
|
|
|
|
|