summaryrefslogtreecommitdiff
path: root/copy.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-15 14:59:17 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-15 14:59:17 -0400
commite093297dd5846e963868b62afe55f589d72384c0 (patch)
tree986dfcf4cf6ea5c0f3c94bcaa6da090339abe9ea /copy.c
parent6bedd04d011eaadf9ec0dc865bb8f84127db7e75 (diff)
#error, realized this can replace where
Diffstat (limited to 'copy.c')
-rw-r--r--copy.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/copy.c b/copy.c
index 00d3106..d03782c 100644
--- a/copy.c
+++ b/copy.c
@@ -441,6 +441,9 @@ static void copy_stmt(Copier *c, Statement *out, Statement *in) {
case STMT_DECL:
copy_decl(c, out->decl = allocr_malloc(c->allocr, sizeof *out->decl), in->decl);
break;
+ case STMT_MESSAGE:
+ copy_expr(c, &out->message.text, &in->message.text);
+ break;
}
}