Fix a SEGV in the register allocator.

This occasionally caused the regress-806 unit test to crash.

Review URL: http://codereview.chromium.org/5913002

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6043 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
fschneider@chromium.org 2010-12-16 12:01:22 +00:00
parent d559d8c6c0
commit cdc7d3908e

View File

@ -526,7 +526,7 @@ LifetimePosition LiveRange::FirstIntersection(LiveRange* other) {
}
if (a->start().Value() < b->start().Value()) {
a = a->next();
if (a == NULL && a->start().Value() > other->End().Value()) break;
if (a == NULL || a->start().Value() > other->End().Value()) break;
AdvanceLastProcessedMarker(a, advance_last_processed_up_to);
} else {
b = b->next();