[turbofan] Improve JSToBoolean typing.
R=svenpanne@chromium.org Review URL: https://codereview.chromium.org/792013006 Cr-Commit-Position: refs/heads/master@{#25896}
This commit is contained in:
parent
233f2d2bf1
commit
efd8fd5612
@ -1182,7 +1182,7 @@ Bounds Typer::Visitor::TypeJSTypeOf(Node* node) {
|
||||
|
||||
|
||||
Bounds Typer::Visitor::TypeJSToBoolean(Node* node) {
|
||||
return Bounds(Type::None(zone()), Type::Boolean(zone()));
|
||||
return TypeUnaryOp(node, ToBoolean);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user