summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beasm.c
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-01-25 18:02:31 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-01-25 18:02:59 +0100
commitb7a5fc14b1382c41f89fa8a503d8c4b4a75b909d (patch)
treebdca7d21152ac1be39697e19a6925a67f6920c29 /ir/be/beasm.c
parent7b4fe6ac1e15143f9f2ab3efd9da8d18299f5368 (diff)
be: Assert that 'in' and 'in_reqs' have the same length in be_make_asm().
Diffstat (limited to 'ir/be/beasm.c')
-rw-r--r--ir/be/beasm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/ir/be/beasm.c b/ir/be/beasm.c
index d9e1520..2e83c2f 100644
--- a/ir/be/beasm.c
+++ b/ir/be/beasm.c
@@ -193,6 +193,8 @@ static bool match_requirement(arch_register_req_t const **reqs, size_t const n_r
ir_node *be_make_asm(ir_node const *const node, ir_node **in, arch_register_req_t const **in_reqs, arch_register_req_t const **out_reqs, void *const operands)
{
+ assert(ARR_LEN(in) == ARR_LEN(in_reqs));
+
ir_graph *const irg = get_irn_irg(node);
struct obstack *const obst = get_irg_obstack(irg);