Commit 27541764 authored by qinsoon's avatar qinsoon

fix bug, allow storing imm to mem by store_base_offset

parent c82f43d0
......@@ -2031,8 +2031,7 @@ impl <'a> InstructionSelection {
fn emit_store_base_offset (&mut self, base: &P<Value>, offset: i32, src: &P<Value>, vm: &VM) {
let mem = self.make_memory_op_base_offset(base, offset, src.ty.clone(), vm);
self.backend.emit_mov_mem_r(&mem, src);
self.emit_move_value_to_value(&mem, src);
}
fn emit_lea_base_immoffset(&mut self, dest: &P<Value>, base: &P<Value>, offset: i32, vm: &VM) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment