aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/show-parse.c
diff options
authorLinus Torvalds <torvalds@home.transmeta.com>2003-04-11 18:53:00 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:00:30 -0700
commit4cf5c5abfa3e3711e2b4f0c3b1e8378bfe645fe2 (patch)
tree428cb94e067fa9f831600fd2533eeb8995533fbe /show-parse.c
parent941fd98d91760b6a7e169c7d5ed13745fd5c08a3 (diff)
downloadsparse-dev-4cf5c5abfa3e3711e2b4f0c3b1e8378bfe645fe2.tar.gz
Don't show bad expression types.
Diffstat (limited to 'show-parse.c')
-rw-r--r--show-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/show-parse.c b/show-parse.c
index e12c5711..94735899 100644
--- a/show-parse.c
+++ b/show-parse.c
@@ -309,7 +309,7 @@ static int show_return_stmt(struct statement *stmt)
{
struct expression *expr = stmt->expression;
- if (expr) {
+ if (expr && expr->ctype) {
int val = show_expression(expr);
printf("\tmov.%d\t\tretval,v%d\n",
expr->ctype->bit_size, val);