[svn:parrot] r45040 - trunk/compilers/imcc

petdance at svn.parrot.org petdance at svn.parrot.org
Thu Mar 18 22:53:06 UTC 2010


Author: petdance
Date: Thu Mar 18 22:53:06 2010
New Revision: 45040
URL: https://trac.parrot.org/parrot/changeset/45040

Log:
Remove conflict between loop variables in and out of a scope

Modified:
   trunk/compilers/imcc/instructions.c

Modified: trunk/compilers/imcc/instructions.c
==============================================================================
--- trunk/compilers/imcc/instructions.c	Thu Mar 18 22:47:15 2010	(r45039)
+++ trunk/compilers/imcc/instructions.c	Thu Mar 18 22:53:06 2010	(r45040)
@@ -275,7 +275,7 @@
 {
     ASSERT_ARGS(instruction_writes)
     const int f = ins->flags;
-    int i;
+    int j;
 
     /*
      * a get_results opcode is before the actual sub call
@@ -336,9 +336,9 @@
         return 0;
     }
 
-    for (i = 0; i < ins->symreg_count; i++)
-        if (f & (1 << (16 + i)))
-            if (ins->symregs[i] == r)
+    for (j = 0; j < ins->symreg_count; j++)
+        if (f & (1 << (16 + j)))
+            if (ins->symregs[j] == r)
                 return 1;
 
     return 0;


More information about the parrot-commits mailing list