Fixing alloy analysis warnings.

This commit is contained in:
Ben Vanik
2014-01-14 01:11:42 -08:00
parent 50587974b5
commit a02f5c3e7a
6 changed files with 11 additions and 10 deletions

View File

@@ -307,7 +307,7 @@ void HIRBuilder::InsertLabel(Label* label, Instr* prev_instr) {
label->prev = label->next = NULL;
Instr* prev_next = prev_instr->next;
Instr* old_prev_tail = prev_block->instr_tail;
Instr* old_prev_tail = prev_block ? prev_block->instr_tail : NULL;
if (prev_instr->next) {
Instr* prev_last = prev_instr->next->prev;
prev_last->next = NULL;