| Index: src/compiler/machine-operator-reducer.cc
|
| diff --git a/src/compiler/machine-operator-reducer.cc b/src/compiler/machine-operator-reducer.cc
|
| index 516daec88e61d5778f0ba2c9dc1fdcec0cc7fabb..95c6eaa318cb5ce29033310ca274846a8226ca3d 100644
|
| --- a/src/compiler/machine-operator-reducer.cc
|
| +++ b/src/compiler/machine-operator-reducer.cc
|
| @@ -390,7 +390,7 @@ Reduction MachineOperatorReducer::Reduce(Node* node) {
|
| case IrOpcode::kFloat64Mod: {
|
| Float64BinopMatcher m(node);
|
| if (m.right().Is(0)) { // x % 0 => NaN
|
| - return ReplaceFloat64(base::OS::nan_value());
|
| + return ReplaceFloat64(std::numeric_limits<double>::quiet_NaN());
|
| }
|
| if (m.right().IsNaN()) { // x % NaN => NaN
|
| return Replace(m.right().node());
|
|
|