WARNING! Access to this system is limited to authorised users only.
Unauthorised users may be subject to prosecution.
Unauthorised access to this system is a criminal offence under Australian law (Federal Crimes Act 1914 Part VIA)
It is a criminal offence to:
(1) Obtain access to data without authority. -Penalty 2 years imprisonment.
(2) Damage, delete, alter or insert data without authority. -Penalty 10 years imprisonment.
User activity is monitored and recorded. Anyone using this system expressly consents to such monitoring and recording.

Commit 27541764 authored by qinsoon's avatar qinsoon
Browse files

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