Commit d277a20a authored by Matthias Braun's avatar Matthias Braun
Browse files

amd64: fix gen_Address for PIC code

parent 123e854f
......@@ -447,6 +447,7 @@ static ir_node *gen_Address(ir_node *node)
addr.mem_input = NO_INPUT;
addr.base_input = RIP_INPUT;
addr.immediate.entity = entity;
return new_bd_amd64_Lea(dbgi, block, 0, NULL, INSN_MODE_64, addr);
} else {
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