fix warnings on sparc

llvm-svn: 9759
This commit is contained in:
Chris Lattner 2003-11-06 21:30:15 +00:00
parent e060df5b2c
commit 24f8a6f223
2 changed files with 2 additions and 2 deletions

View File

@ -414,7 +414,7 @@ makeCostArray()
fprintf(outfile, "short %s_cost[][%d] = {\n", prefix, DELTAWIDTH);
for (i = 0; i <= max_erule_num; i++) {
makeCostVector(pVector[i], pVector[i] ? pVector[i]->rule->delta : 0);
makeCostVector(pVector[i] != 0, pVector[i] ? pVector[i]->rule->delta : 0);
fprintf(outfile, ", /* ");
printRule(pVector[i], "(none)");
fprintf(outfile, " = %d */\n", i);

View File

@ -31,7 +31,7 @@ zero(t) Item_Set t;
int i;
DeltaCost base;
int exists;
int base_nt;
int base_nt = 0;
assert(!t->closed);