Index: src/compiler/representation-change.cc |
diff --git a/src/compiler/representation-change.cc b/src/compiler/representation-change.cc |
index fedf7afc0e96dc4fb79760d7b4150104b7a8e676..10c8c82ce3e917b8b535b8c6204c361ef29104b5 100644 |
--- a/src/compiler/representation-change.cc |
+++ b/src/compiler/representation-change.cc |
@@ -305,7 +305,7 @@ Node* RepresentationChanger::GetFloat64RepresentationFor( |
op = machine()->ChangeUint32ToFloat64(); |
} |
} else if (output_rep == MachineRepresentation::kTagged) { |
- if (output_type->Is(Type::Number())) { |
+ if (output_type->Is(Type::NumberOrUndefined())) { |
op = simplified()->ChangeTaggedToFloat64(); |
} |
} else if (output_rep == MachineRepresentation::kFloat32) { |