BugFix: needed function must be called outside assert() ;-)
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 1 Jul 2006 16:24:02 +0000 (16:24 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Sat, 1 Jul 2006 16:24:02 +0000 (16:24 +0000)
 - fix release mode

ir/be/ia32/ia32_new_nodes.c

index 3345f96..377c435 100644 (file)
@@ -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);
 }