aboutsummaryrefslogtreecommitdiffhomepage
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 3cd918d..a529504 100644
--- a/main.c
+++ b/main.c
@@ -1481,7 +1481,7 @@ void gen_deref_expr(struct CodeGen* g, struct AstNode* ast, int gen_mode) {
gen_expr(g, ast->expr1, GEN_RVAL);
} else {
gen_expr(g, ast->expr1, GEN_RVAL);
- gen_lval2rval(ast->expr1->ty);
+ gen_lval2rval(ast->expr1->ty->to);
}
}