nv50/ir: Fix up insertion of PHI instructions using bb->insertHead().

This commit is contained in:
Francisco Jerez 2011-11-15 15:58:04 +01:00 committed by Christoph Bumiller
parent fc740e7924
commit ab382fbc35

View file

@ -91,7 +91,7 @@ BasicBlock::insertHead(Instruction *inst)
insertBefore(phi, inst);
} else {
if (entry) {
insertBefore(entry, phi);
insertBefore(entry, inst);
} else {
assert(!exit);
phi = exit = inst;