Revision: 21538
Author: [email protected]
Date: Tue May 27 17:07:39 2014 UTC
Log: Fix check for empty type
[email protected]
BUG=
Review URL: https://codereview.chromium.org/307453005
http://code.google.com/p/v8/source/detail?r=21538
Modified:
/branches/bleeding_edge/src/typing.cc
=======================================
--- /branches/bleeding_edge/src/typing.cc Mon May 26 13:59:24 2014 UTC
+++ /branches/bleeding_edge/src/typing.cc Tue May 27 17:07:39 2014 UTC
@@ -675,7 +675,7 @@
Bounds l = expr->left()->bounds();
Bounds r = expr->right()->bounds();
Type* lower =
- l.lower->Is(Type::None()) || r.lower->Is(Type::None()) ?
+ !l.lower->IsInhabited() || !r.lower->IsInhabited() ?
Type::None(zone()) :
l.lower->Is(Type::String()) || r.lower->Is(Type::String()) ?
Type::String(zone()) :
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.