mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 00:34:06 +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 New Issue
Block a user