зеркало из https://github.com/mozilla/gecko-dev.git
Bug 950438 - IonMonkey: The intersection of two ranges that both contain NaN is not empty. r=nbp
This commit is contained in:
Родитель
d4d9ea2859
Коммит
01c0a454c6
|
@ -413,7 +413,9 @@ Range::intersect(TempAllocator &alloc, const Range *lhs, const Range *rhs, bool
|
|||
// Instead, we should use it to eliminate the dead block.
|
||||
// (Bug 765127)
|
||||
if (newUpper < newLower) {
|
||||
*emptyRange = true;
|
||||
// If both ranges can be NaN, the result can still be NaN.
|
||||
if (!lhs->canBeNaN() || !rhs->canBeNaN())
|
||||
*emptyRange = true;
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче