mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 10:50:10 +01:00
nv50: fix potential null deref in insn modifer optimization pass
Bug introduced in 34980cd153.
This commit is contained in:
parent
e975e18beb
commit
778997f9df
1 changed files with 4 additions and 2 deletions
|
|
@ -462,8 +462,10 @@ nv_pass_lower_mods(struct nv_pass *ctx, struct nv_basic_block *b)
|
|||
mi->saturate = 1;
|
||||
mi->def[0] = nvi->def[0];
|
||||
mi->def[0]->insn = mi;
|
||||
mi->flags_def = nvi->flags_def;
|
||||
mi->flags_def->insn = mi;
|
||||
if (nvi->flags_def) {
|
||||
mi->flags_def = nvi->flags_def;
|
||||
mi->flags_def->insn = mi;
|
||||
}
|
||||
nv_nvi_delete(nvi);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue