From: Michael Beck Date: Sat, 1 Jul 2006 16:24:02 +0000 (+0000) Subject: BugFix: needed function must be called outside assert() ;-) X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=34381e65327f7bcd957bdef4029b0c5348ed5bc1;p=libfirm BugFix: needed function must be called outside assert() ;-) - fix release mode --- diff --git a/ir/be/ia32/ia32_new_nodes.c b/ir/be/ia32/ia32_new_nodes.c index 3345f96eb..377c43507 100644 --- a/ir/be/ia32/ia32_new_nodes.c +++ b/ir/be/ia32/ia32_new_nodes.c @@ -379,8 +379,8 @@ static int ia32_dump_node(ir_node *n, FILE *F, dump_reason_t reason) { */ static ident *get_ident_for_tv(tarval *tv) { char buf[1024]; - - assert(tarval_snprintf(buf, sizeof(buf), tv)); + int len = tarval_snprintf(buf, sizeof(buf), tv); + assert(len); return new_id_from_str(buf); }