From cdc7d3908ee1b3684d8d4c9608688be371de0931 Mon Sep 17 00:00:00 2001 From: "fschneider@chromium.org" Date: Thu, 16 Dec 2010 12:01:22 +0000 Subject: [PATCH] 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 --- src/lithium-allocator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lithium-allocator.cc b/src/lithium-allocator.cc index 30b86ffe72..ac61c17ba7 100644 --- a/src/lithium-allocator.cc +++ b/src/lithium-allocator.cc @@ -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();