aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/evaluate.c
diff options
Diffstat (limited to 'evaluate.c')
-rw-r--r--evaluate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/evaluate.c b/evaluate.c
index c39f9ec7..fd84205c 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -63,6 +63,8 @@ static inline int valid_subexpr_type(struct expression *expr)
static struct symbol *unqualify_type(struct symbol *ctype)
{
+ if (!ctype)
+ return ctype;
if (ctype->type == SYM_NODE && (ctype->ctype.modifiers & MOD_QUALIFIER)) {
struct symbol *unqual = alloc_symbol(ctype->pos, 0);