aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/inline.c
diff options
context:
space:
mode:
Diffstat (limited to 'inline.c')
-rw-r--r--inline.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/inline.c b/inline.c
index eceef8ba..0097e4bf 100644
--- a/inline.c
+++ b/inline.c
@@ -155,6 +155,8 @@ static struct expression * copy_expression(struct expression *expr)
/* Cast/sizeof/__alignof__ */
case EXPR_CAST:
+ if (!expr->cast_expression)
+ return NULL;
if (expr->cast_expression->type == EXPR_INITIALIZER) {
struct expression *cast = expr->cast_expression;
struct symbol *sym = expr->cast_type;