[llvm-commits] CVS: llvm-java/runtime/runtime.c

Alkis Evlogimenos alkis at cs.uiuc.edu
Sat Apr 2 16:37:19 PST 2005



Changes in directory llvm-java/runtime:

runtime.c updated: 1.34 -> 1.35
---
Log message:

Really loop through class records!


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

 runtime.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


Index: llvm-java/runtime/runtime.c
diff -u llvm-java/runtime/runtime.c:1.34 llvm-java/runtime/runtime.c:1.35
--- llvm-java/runtime/runtime.c:1.34	Sat Apr  2 18:31:52 2005
+++ llvm-java/runtime/runtime.c	Sat Apr  2 18:37:08 2005
@@ -79,7 +79,7 @@
 struct llvm_java_class_record*
 llvm_java_find_class_record(const char* name) {
   struct llvm_java_class_record** cr = &llvm_java_class_records;
-  while (*cr)
+  for (; *cr; ++cr)
     if (strcmp((*cr)->typeinfo.name, name) == 0)
       return *cr;
 
@@ -121,8 +121,8 @@
 
 int main(int argc, char** argv) {
   const ClassInitializerFunction* classInit = &llvm_java_class_initializers;
-  while (*classInit)
-    (*classInit++)();
+  for (; *classInit; ++classInit)
+    (*classInit)();
 
   llvm_java_main(argc, argv);
   return 0;






More information about the llvm-commits mailing list