aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-07-29 11:51:17 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:02:24 -0700
commit07636c9f3a029aae73250ec786426ae6645d0cf3 (patch)
treeebd9088a630cf18eb6482c41d7e3c720a6ea109e /compile-i386.c
parent[PATCH] "-o foo" and "-I foo" (diff)
downloadsparse-07636c9f3a029aae73250ec786426ae6645d0cf3.tar.gz
sparse-07636c9f3a029aae73250ec786426ae6645d0cf3.tar.bz2
sparse-07636c9f3a029aae73250ec786426ae6645d0cf3.zip
Make "compile" assert more readable.
Quite frankly, anybody who uses assert() should be shot. It's a fundamentally broken thing.
Diffstat (limited to 'compile-i386.c')
-rw-r--r--compile-i386.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile-i386.c b/compile-i386.c
index 596b47a..87db313 100644
--- a/compile-i386.c
+++ b/compile-i386.c
@@ -1181,7 +1181,7 @@ static struct storage *emit_binop(struct expression *expr)
opname = "div";
break;
default:
- assert(0);
+ error(expr->pos, "unhandled binop '%s'\n", show_special(expr->op));
break;
}