]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add some casts.
authorJulian Seward <jseward@acm.org>
Mon, 4 Jul 2005 10:08:24 +0000 (10:08 +0000)
committerJulian Seward <jseward@acm.org>
Mon, 4 Jul 2005 10:08:24 +0000 (10:08 +0000)
git-svn-id: svn://svn.valgrind.org/vex/trunk@1255

VEX/priv/host-generic/reg_alloc2.c

index 29b4cda6e5a3c55b1ab81bb88df8731bccac32a6..204362316f25fc66d5b49c3b39b5b6a56adba675 100644 (file)
@@ -920,7 +920,7 @@ HInstrArray* doRegisterAllocation (
          rreg_state[m].vreg = vregD;
          vassert(IS_VALID_VREGNO(hregNumber(vregD)));
          vassert(IS_VALID_VREGNO(hregNumber(vregS)));
-         vreg_state[hregNumber(vregD)] = m;
+         vreg_state[hregNumber(vregD)] = toShort(m);
          vreg_state[hregNumber(vregS)] = INVALID_RREG_NO;
 
          /* Move on to the next insn.  We skip the post-insn stuff for
@@ -1081,7 +1081,7 @@ HInstrArray* doRegisterAllocation (
             rreg_state[k].vreg = vreg;
             m = hregNumber(vreg);
             vassert(IS_VALID_VREGNO(m));
-            vreg_state[m] = k;
+            vreg_state[m] = toShort(k);
             addToHRegRemap(&remap, vreg, rreg_state[k].rreg);
             /* Generate a reload if needed. */
             if (reg_usage.mode[j] != HRmWrite) {
@@ -1159,7 +1159,7 @@ HInstrArray* doRegisterAllocation (
 
          m = hregNumber(vreg);
          vassert(IS_VALID_VREGNO(m));
-         vreg_state[m] = spillee;
+         vreg_state[m] = toShort(spillee);
 
          /* Now, if this vreg is being read or modified (as opposed to
             written), we have to generate a reload for it. */