projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
29f0a1e
)
Ensure that the noreturn function xnomem() does not return.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 10 Jan 2012 08:25:59 +0000
(09:25 +0100)
committer
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 10 Jan 2012 08:28:25 +0000
(09:28 +0100)
ir/adt/xmalloc.c
patch
|
blob
|
history
diff --git
a/ir/adt/xmalloc.c
b/ir/adt/xmalloc.c
index
b526a42
..
47ee427
100644
(file)
--- a/
ir/adt/xmalloc.c
+++ b/
ir/adt/xmalloc.c
@@
-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)