nv50/ir: Clean up references to function values before destroying them.
This commit is contained in:
parent
12f65e38c0
commit
572bf83ec0
|
@ -57,6 +57,10 @@ Function::~Function()
|
|||
if (bbArray)
|
||||
delete[] bbArray;
|
||||
|
||||
// clear value refs and defs
|
||||
ins.clear();
|
||||
outs.clear();
|
||||
|
||||
for (ArrayList::Iterator it = allInsns.iterator(); !it.end(); it.next())
|
||||
delete_Instruction(prog, reinterpret_cast<Instruction *>(it.get()));
|
||||
|
||||
|
|
Loading…
Reference in New Issue