Bug 1022321 - IonMonkey: Relax an overzealous assert. r=nbp

This commit is contained in:
Dan Gohman 2014-06-12 15:47:36 -07:00
parent 55694940f4
commit a0e460baf1
2 changed files with 4 additions and 1 deletions

View File

@ -91,6 +91,9 @@ class MBasicBlock : public TempObject, public InlineListNode<MBasicBlock>
// Mark this block (and only this block) as unreachable.
void setUnreachable() {
JS_ASSERT(!unreachable_);
setUnreachableUnchecked();
}
void setUnreachableUnchecked() {
unreachable_ = true;
}
bool unreachable() const {

View File

@ -1053,7 +1053,7 @@ MBeta::computeRange(TempAllocator &alloc)
Range *range = Range::intersect(alloc, &opRange, comparison_, &emptyRange);
if (emptyRange) {
IonSpew(IonSpew_Range, "Marking block for inst %d unreachable", id());
block()->setUnreachable();
block()->setUnreachableUnchecked();
} else {
setRange(range);
}