summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp
index fb4188870a6..aafc7cb1a8c 100644
--- a/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp
+++ b/src/gallium/drivers/nv50/codegen/nv50_ir_bb.cpp
@@ -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;