nv50: fix uninitialized variable in nv50_revdep_reorder
"unsafe" is never initialized, but used (found by valgrind)
This commit is contained in:
committed by
Ben Skeggs
parent
0ef781c1ae
commit
9e1550dbaf
@@ -3283,7 +3283,7 @@ prep_inspect_insn(struct nv50_pc *pc, const struct tgsi_full_instruction *insn)
|
||||
static unsigned
|
||||
nv50_revdep_reorder(unsigned m[4], unsigned rdep[4])
|
||||
{
|
||||
unsigned i, c, x, unsafe;
|
||||
unsigned i, c, x, unsafe = 0;
|
||||
|
||||
for (c = 0; c < 4; c++)
|
||||
m[c] = c;
|
||||
|
||||
Reference in New Issue
Block a user