nv50/ir: OP_JOIN is a flow instruction

OP_JOIN instructions are assumed to be flow instructions and mercilessly
casted to FlowInstruction.

This patch fixes an instance where an OP_JOIN is created as a plain
instruction. This can cause crashes in the ir printer.

[imirkin: add ->fixed = 1]
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
Jürgen Rühle 2015-06-06 18:37:20 +02:00 committed by Ilia Mirkin
parent 061c9bc204
commit 2e42deb29c

View file

@ -887,7 +887,7 @@ NV50LoweringPreSSA::handleTXL(TexInstruction *i)
}
}
bld.setPosition(joinBB, false);
bld.mkOp(OP_JOIN, TYPE_NONE, NULL);
bld.mkFlow(OP_JOIN, NULL, CC_ALWAYS, NULL)->fixed = 1;
return true;
}