Commit 0e84cd47 authored by jarin's avatar jarin Committed by Commit bot

[turbofan] Require proper typing when inferring machine type from big-boy type.

Review URL: https://codereview.chromium.org/1479503002

Cr-Commit-Position: refs/heads/master@{#32266}
parent 066747ea
......@@ -471,8 +471,7 @@ const Operator* RepresentationChanger::Float64OperatorFor(
MachineType RepresentationChanger::TypeFromUpperBound(Type* type) {
if (type->Is(Type::None()))
return kTypeAny; // TODO(titzer): should be an error
CHECK(!type->Is(Type::None()));
if (type->Is(Type::Signed32())) return kTypeInt32;
if (type->Is(Type::Unsigned32())) return kTypeUint32;
if (type->Is(Type::Number())) return kTypeNumber;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment