nv50: fix bad assertion on Elements(phi->src) in regalloc

The array is phi->src, phi->src[i] is just a pointer.
This commit is contained in:
Christoph Bumiller
2012-02-06 12:15:17 +01:00
parent ffc8494db5
commit 189e6c7e81
+1 -1
View File
@@ -421,7 +421,7 @@ phi_opnd_for_bb(struct nv_instruction *phi, struct nv_basic_block *b,
int i, j;
for (j = -1, i = 0; i < 6 && phi->src[i]; ++i) {
assert(i < Elements(phi->src[i]));
assert(i < Elements(phi->src));
srci = phi->src[i];
/* if already replaced, check with original source first */
if (srci->flags & NV_REF_FLAG_REGALLOC_PRIV)