summaryrefslogtreecommitdiffhomepage
path: root/ir/be/ia32
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2019-03-04 09:13:02 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2019-04-05 20:44:54 +0200
commitfd82a980b216595e52e27c9ea0e249db0dccda74 (patch)
treedd26fe8287bdfcc7f28097f89d7732e3910cc5fa /ir/be/ia32
parent60d0bc93afef8023bf7a940a85c94724490becd1 (diff)
beasm: Tell the backends how to handle the fallthrough exec output of be_Asm.
Diffstat (limited to 'ir/be/ia32')
-rw-r--r--ir/be/ia32/ia32_emitter.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ir/be/ia32/ia32_emitter.c b/ir/be/ia32/ia32_emitter.c
index 304519a..ac6af26 100644
--- a/ir/be/ia32/ia32_emitter.c
+++ b/ir/be/ia32/ia32_emitter.c
@@ -803,7 +803,9 @@ static void emit_ia32_asm_operand(ir_node const *const node, char const modifier
*/
static void emit_ia32_Asm(const ir_node *node)
{
- be_emit_asm(node, emit_ia32_asm_operand);
+ ir_node *const fallthrough = be_emit_asm(node, emit_ia32_asm_operand);
+ if (fallthrough)
+ emit_jmp(node, fallthrough);
}
/**