Index: src/hydrogen-instructions.cc |
diff --git a/src/hydrogen-instructions.cc b/src/hydrogen-instructions.cc |
index b89bcc4d99f443d5b0095c9ddfd16c658872c3ee..72744df8e0a51f811cd0407147d314274b55660a 100644 |
--- a/src/hydrogen-instructions.cc |
+++ b/src/hydrogen-instructions.cc |
@@ -2946,7 +2946,7 @@ Maybe<HConstant*> HConstant::CopyToTruncatedInt32(Zone* zone) { |
HConstant(DoubleToInt32(double_value_), Representation::Integer32(), |
NotInNewSpace(), object_); |
} |
- return Maybe<HConstant*>(res != NULL, res); |
+ return res != NULL ? Just(res) : Nothing<HConstant*>(); |
} |
@@ -2962,7 +2962,7 @@ Maybe<HConstant*> HConstant::CopyToTruncatedNumber(Isolate* isolate, |
} else if (handle->IsNull()) { |
res = new(zone) HConstant(0); |
} |
- return Maybe<HConstant*>(res != NULL, res); |
+ return res != NULL ? Just(res) : Nothing<HConstant*>(); |
} |