summaryrefslogtreecommitdiffhomepage
path: root/ir/stat
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2013-06-23 21:28:35 +0200
committerChristoph Mallon <christoph.mallon@gmx.de>2013-07-24 09:12:47 +0200
commitfa6aa94cc796736f78bf1dcff304b63e2eb05053 (patch)
treea090c5ee8c6c591619bb2728faf24bc1cef3e1d7 /ir/stat
parent09ab3a766ee1e0afbec4c9b6fdf924f759c52962 (diff)
Use panic("foo") instead of assert(!"foo").
Diffstat (limited to 'ir/stat')
-rw-r--r--ir/stat/pattern.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ir/stat/pattern.c b/ir/stat/pattern.c
index 84bf4cc..f5be62e 100644
--- a/ir/stat/pattern.c
+++ b/ir/stat/pattern.c
@@ -388,8 +388,7 @@ static size_t find_mode_index(const ir_mode *mode)
return i;
}
/* should really not happen */
- assert(!"Cound not find index of mode in find_mode_index()");
- return (size_t)-1;
+ panic("could not find index of mode");
}
/**