nv50/ir: initialize RelocInfo to 0

This commit is contained in:
Christoph Bumiller
2011-10-06 20:45:08 +02:00
parent 7920c3c192
commit 974102c7c2
@@ -258,6 +258,8 @@ CodeEmitter::addReloc(RelocEntry::Type ty, int w, uint32_t data, uint32_t m,
size + RELOC_ALLOC_INCREMENT * sizeof(RelocEntry)));
if (!relocInfo)
return false;
if (n == 0)
memset(relocInfo, 0, sizeof(RelocInfo));
}
++relocInfo->count;