mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
UPSTREAM: util/romcc: Don't reference a variable after checking it for NULL
BUG=none
BRANCH=none
TEST=none
Change-Id: Id30943d931ca9d3a792bfdffde22f0bd5f41a19b
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Commit-Id: ded1e05d11
Original-Change-Id: Ic8e850bdf75d38fc061fb3a8c55d38bcf09c305a
Original-Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Original-Found-by: Coverity Scan #1129146
Original-Reviewed-on: https://review.coreboot.org/17886
Original-Tested-by: build bot (Jenkins)
Original-Reviewed-by: Nico Huber <nico.h@gmx.de>
Reviewed-on: https://chromium-review.googlesource.com/441805
This commit is contained in:
parent
e58e7da5d8
commit
258e240898
1 changed files with 4 additions and 4 deletions
|
@ -21319,15 +21319,15 @@ static void verify_blocks(struct compile_state *state)
|
|||
"computed users %d != stored users %d",
|
||||
users, block->users);
|
||||
}
|
||||
if (!(block->last->next) || !(block->last->next->u.block)) {
|
||||
internal_error(state, block->last,
|
||||
"bad next block");
|
||||
}
|
||||
if (!triple_stores_block(state, block->last->next)) {
|
||||
internal_error(state, block->last->next,
|
||||
"cannot find next block");
|
||||
}
|
||||
block = block->last->next->u.block;
|
||||
if (!block) {
|
||||
internal_error(state, block->last->next,
|
||||
"bad next block");
|
||||
}
|
||||
} while(block != state->bb.first_block);
|
||||
if (blocks != state->bb.last_vertex) {
|
||||
internal_error(state, 0, "computed blocks: %d != stored blocks %d",
|
||||
|
|
Loading…
Add table
Reference in a new issue