Index: src/compiler/operation-typer.cc |
diff --git a/src/compiler/operation-typer.cc b/src/compiler/operation-typer.cc |
index e81c81b567fe806a4bafff58c9f5f6793a9cfd7c..0a94919682d564d058a9b55bd87a8f00e0ba8e28 100644 |
--- a/src/compiler/operation-typer.cc |
+++ b/src/compiler/operation-typer.cc |
@@ -485,6 +485,7 @@ Type* OperationTyper::NumberToUint32(Type* type) { |
Type* OperationTyper::NumberSilenceNaN(Type* type) { |
DCHECK(type->Is(Type::Number())); |
// TODO(turbofan): We should have a dedicated type for the signaling NaN. |
Jarin
2016/08/08 08:03:47
Please add a comment that signposts a horrible hac
Benedikt Meurer
2016/08/08 08:12:55
Done.
|
+ if (type->Maybe(Type::NaN())) return Type::Number(); |
return type; |
} |