commit cc8a3824e81f6769bb445b2773b7b03020bfb772
parent e745c6f48fa18ee3b4b7a46771575d567cd9f15a
Author: Drew DeVault <sir@cmpwn.com>
Date: Fri, 2 Jul 2021 14:44:05 -0400
gen: minor fixes for gen_copy
Signed-off-by: Drew DeVault <sir@cmpwn.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gen.c b/src/gen.c
@@ -166,13 +166,12 @@ gen_copy(struct gen_context *ctx,
case STORAGE_U8:
case STORAGE_UINT:
case STORAGE_UINTPTR:
+ case STORAGE_POINTER:
// Implemented below
break;
case STORAGE_ARRAY:
gen_copy_array(ctx, dest, src);
return;
- case STORAGE_FUNCTION:
- case STORAGE_POINTER:
case STORAGE_SLICE:
case STORAGE_STRING:
case STORAGE_STRUCT:
@@ -182,6 +181,7 @@ gen_copy(struct gen_context *ctx,
assert(0); // TODO
case STORAGE_ALIAS:
case STORAGE_FCONST:
+ case STORAGE_FUNCTION:
case STORAGE_ICONST:
case STORAGE_VOID:
abort(); // Invariant