From 730f8a6508420c6959bed0221952b3237f85785d Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sat, 24 Nov 2012 10:58:56 +0100 Subject: [PATCH] tr: Remove if from set_type_size(), which would lead to a silent failure in release mode. Now we get a nice crash. --- ir/tr/type.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ir/tr/type.c b/ir/tr/type.c index da5bd1cd3..f4a22ea7e 100644 --- a/ir/tr/type.c +++ b/ir/tr/type.c @@ -268,11 +268,7 @@ void set_type_visibility(ir_type *tp, ir_visibility v) void set_type_size_bytes(ir_type *tp, unsigned size) { const tp_op *tpop = get_type_tpop(tp); - - if (tpop->ops.set_type_size) - tpop->ops.set_type_size(tp, size); - else - assert(0 && "Cannot set size for this type"); + tpop->ops.set_type_size(tp, size); } unsigned get_type_alignment_bytes(ir_type *tp) -- 2.20.1