[llvm-commits] CVS: llvm/utils/Burg/be.c closure.c

Chris Lattner lattner at cs.uiuc.edu
Thu Nov 6 15:31:01 PST 2003


Changes in directory llvm/utils/Burg:

be.c updated: 1.3 -> 1.4
closure.c updated: 1.1 -> 1.2

---
Log message:

fix warnings on sparc


---
Diffs of the changes:  (+4 -4)

Index: llvm/utils/Burg/be.c
diff -u llvm/utils/Burg/be.c:1.3 llvm/utils/Burg/be.c:1.4
--- llvm/utils/Burg/be.c:1.3	Mon Jan 20 00:19:18 2003
+++ llvm/utils/Burg/be.c	Thu Nov  6 15:30:15 2003
@@ -1,4 +1,4 @@
-char rcsid_be[] = "$Id: be.c,v 1.3 2003/01/20 06:19:18 lattner Exp $";
+char rcsid_be[] = "$Id: be.c,v 1.4 2003/11/06 21:30:15 lattner Exp $";
 
 #include <stdio.h>
 #include <string.h>
@@ -414,7 +414,7 @@
 
 	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);


Index: llvm/utils/Burg/closure.c
diff -u llvm/utils/Burg/closure.c:1.1 llvm/utils/Burg/closure.c:1.2
--- llvm/utils/Burg/closure.c:1.1	Tue Sep 17 18:03:29 2002
+++ llvm/utils/Burg/closure.c	Thu Nov  6 15:30:15 2003
@@ -1,4 +1,4 @@
-char rcsid_closure[] = "$Id: closure.c,v 1.1 2002/09/17 23:03:29 lattner Exp $";
+char rcsid_closure[] = "$Id: closure.c,v 1.2 2003/11/06 21:30:15 lattner Exp $";
 
 #include <stdio.h>
 #include "b.h"
@@ -31,7 +31,7 @@
 	int i;
 	DeltaCost base;
 	int exists;
-	int base_nt;
+	int base_nt = 0;
 
 	assert(!t->closed);
 





More information about the llvm-commits mailing list