Commit 842942a0 authored by Christoph Mallon's avatar Christoph Mallon
Browse files

amd64: Set correct address immediate kind for vararg related nodes.

parent 31cc6d4f
...@@ -326,7 +326,7 @@ static ir_node *make_mov_val64_to_offset_mem(dbg_info *dbgi, ir_node *block, ir_ ...@@ -326,7 +326,7 @@ static ir_node *make_mov_val64_to_offset_mem(dbg_info *dbgi, ir_node *block, ir_
.immediate = { .immediate = {
.entity = entity, .entity = entity,
.offset = offset, .offset = offset,
.kind = X86_IMM_FRAMEOFFSET, .kind = entity ? X86_IMM_FRAMEOFFSET : X86_IMM_VALUE,
}, },
.variant = X86_ADDR_BASE, .variant = X86_ADDR_BASE,
.base_input = 1, .base_input = 1,
...@@ -381,7 +381,7 @@ static ir_node *make_lea_with_offset_entity(dbg_info *dbgi, ir_node *block, ...@@ -381,7 +381,7 @@ static ir_node *make_lea_with_offset_entity(dbg_info *dbgi, ir_node *block,
amd64_addr_t lea_addr = { amd64_addr_t lea_addr = {
.immediate = { .immediate = {
.entity = offset, .entity = offset,
.kind = X86_IMM_VALUE, .kind = X86_IMM_FRAMEOFFSET,
}, },
.variant = X86_ADDR_BASE, .variant = X86_ADDR_BASE,
.base_input = 0, .base_input = 0,
......
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