aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-07-04 01:06:29 -0700
committerGraydon Hoare <[email protected]>2010-07-04 01:06:29 -0700
commit5db3f6ef6a81b6c54f100c2fc8bc7ecf073ec683 (patch)
tree6337773540899af260ef65650de4111ec3768150
parentFix bug crashing valgrind in obj-recursion.rs. (diff)
downloadrust-5db3f6ef6a81b6c54f100c2fc8bc7ecf073ec683.tar.xz
rust-5db3f6ef6a81b6c54f100c2fc8bc7ecf073ec683.zip
Spill immediates with proper IL type (was making valgrind dislike obj-with-vec.rs).
-rw-r--r--src/boot/me/trans.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/me/trans.ml b/src/boot/me/trans.ml
index 48bf3d90..e6662ed6 100644
--- a/src/boot/me/trans.ml
+++ b/src/boot/me/trans.ml
@@ -364,7 +364,7 @@ let trans_visitor
match src with
Il.Cell (Il.Mem ta) -> ta
| Il.Cell (Il.Reg (_, t)) -> do_spill src t
- | Il.Imm _ -> do_spill src (Il.ValTy word_bits)
+ | Il.Imm (_,tm) -> do_spill src (Il.ValTy (Il.bits_of_ty_mach tm))
| Il.ImmPtr (f, rty) ->
do_spill
(Il.Cell (crate_rel_to_ptr (crate_rel_imm f) rty))