aboutsummaryrefslogtreecommitdiff
path: root/src/abi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/abi.c')
-rw-r--r--src/abi.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/abi.c b/src/abi.c
index fede365..a16ef2d 100644
--- a/src/abi.c
+++ b/src/abi.c
@@ -102,6 +102,10 @@ void abi0(struct fn *f)
struct insn a = rewrite_retarg(n);
insn_at(b->insns, i) = a;
}
+ else if (n.type == CALL) {
+ set_insn_flags(&n, CALL_SETUP | CALL_TEARDOWN);
+ insn_at(b->insns, i) = n;
+ }
}
}
}