summaryrefslogtreecommitdiff
path: root/copy.c
diff options
context:
space:
mode:
Diffstat (limited to 'copy.c')
-rw-r--r--copy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/copy.c b/copy.c
index 227f3e1..d85dacb 100644
--- a/copy.c
+++ b/copy.c
@@ -272,7 +272,7 @@ static void copy_stmt(Copier *c, Statement *out, Statement *in) {
*out = *in;
switch (in->kind) {
case STMT_RET:
- if (in->flags & RET_HAS_EXPR)
+ if (in->ret.flags & RET_HAS_EXPR)
copy_expr(c, &out->ret.expr, &in->ret.expr);
break;
case STMT_EXPR: