Spill immediates with proper IL type (was making valgrind dislike obj-with-vec.rs).

This commit is contained in:
Graydon Hoare 2010-07-04 01:06:29 -07:00
parent bd514114cf
commit 5db3f6ef6a
1 changed files with 1 additions and 1 deletions

View File

@ -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))