Ensure that the noreturn function xnomem() does not return.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 10 Jan 2012 08:25:59 +0000 (09:25 +0100)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 10 Jan 2012 08:28:25 +0000 (09:28 +0100)
ir/adt/xmalloc.c

index b526a42..47ee427 100644 (file)
@@ -38,6 +38,7 @@ static NORETURN xnomem(void)
 {
        /* Do not use panic() here, because it might try to allocate memory! */
        fputs("out of memory", stderr);
+       abort();
 }
 
 void *xmalloc(size_t size)