Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Unified Diff: vm/intermediate_language.cc

Issue 10826299: Fix crash bug when replacing a definition with a definition that has no uses. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | vm/intermediate_language_test.cc » ('j') | vm/intermediate_language_test.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/intermediate_language.cc
===================================================================
--- vm/intermediate_language.cc (revision 10621)
+++ vm/intermediate_language.cc (working copy)
@@ -312,8 +312,10 @@
}
current->definition_ = other;
- current->next_use_ = other->use_list();
- other->use_list()->previous_use_ = current;
+ if (other->use_list() != NULL) {
+ current->next_use_ = other->use_list();
+ other->use_list()->previous_use_ = current;
+ }
other->set_use_list(head);
}
« no previous file with comments | « no previous file | vm/intermediate_language_test.cc » ('j') | vm/intermediate_language_test.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698