Skip to content
Snippets Groups Projects
Commit cd213197 authored by Chris Lattner's avatar Chris Lattner
Browse files

fix warnings on sparc

llvm-svn: 9759
parent 72a4db8b
No related branches found
No related tags found
No related merge requests found
...@@ -414,7 +414,7 @@ makeCostArray() ...@@ -414,7 +414,7 @@ makeCostArray()
fprintf(outfile, "short %s_cost[][%d] = {\n", prefix, DELTAWIDTH); fprintf(outfile, "short %s_cost[][%d] = {\n", prefix, DELTAWIDTH);
for (i = 0; i <= max_erule_num; i++) { 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, ", /* "); fprintf(outfile, ", /* ");
printRule(pVector[i], "(none)"); printRule(pVector[i], "(none)");
fprintf(outfile, " = %d */\n", i); fprintf(outfile, " = %d */\n", i);
......
...@@ -31,7 +31,7 @@ zero(t) Item_Set t; ...@@ -31,7 +31,7 @@ zero(t) Item_Set t;
int i; int i;
DeltaCost base; DeltaCost base;
int exists; int exists;
int base_nt; int base_nt = 0;
assert(!t->closed); assert(!t->closed);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment