Index: src/compiler/typer.cc |
diff --git a/src/compiler/typer.cc b/src/compiler/typer.cc |
index c4af35e16dd1b04db09fcf76e59199266dd8eb2e..bfecdef61e9b5f80413d3a0c653cd0d9e5c9ba81 100644 |
--- a/src/compiler/typer.cc |
+++ b/src/compiler/typer.cc |
@@ -255,6 +255,12 @@ Bounds Typer::Visitor::TypeInt64Constant(Node* node) { |
} |
+Bounds Typer::Visitor::TypeFloat32Constant(Node* node) { |
+ // TODO(titzer): only call Type::Of() if the type is not already known. |
+ return Bounds(Type::Of(OpParameter<float>(node), zone())); |
+} |
+ |
+ |
Bounds Typer::Visitor::TypeFloat64Constant(Node* node) { |
// TODO(titzer): only call Type::Of() if the type is not already known. |
return Bounds(Type::Of(OpParameter<double>(node), zone())); |