mirror of
https://github.com/rust-lang/rust
synced 2024-10-06 08:40:35 +00:00
Spill immediates with proper IL type (was making valgrind dislike obj-with-vec.rs).
This commit is contained in:
parent
bd514114cf
commit
5db3f6ef6a
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue