diff options
| author | gingerBill <bill@gingerbill.org> | 2023-04-15 15:36:21 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-04-15 15:37:32 +0100 |
| commit | 5da76ae34bac2f54b1bda5528cf49c0551e88bba (patch) | |
| tree | 78a6189f351ceb8dd070c2e453c4b0462d532235 /src/check_type.cpp | |
| parent | b7b5043aea792839226baf9e6d0ca54b73dac9a5 (diff) | |
Add `struct #no_copy`
Diffstat (limited to 'src/check_type.cpp')
| -rw-r--r-- | src/check_type.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/check_type.cpp b/src/check_type.cpp index 7444f88be..b687e838e 100644 --- a/src/check_type.cpp +++ b/src/check_type.cpp @@ -609,8 +609,9 @@ gb_internal void check_struct_type(CheckerContext *ctx, Type *struct_type, Ast * context = str_lit("struct #raw_union"); } - struct_type->Struct.scope = ctx->scope; - struct_type->Struct.is_packed = st->is_packed; + struct_type->Struct.scope = ctx->scope; + struct_type->Struct.is_packed = st->is_packed; + struct_type->Struct.is_no_copy = st->is_no_copy; struct_type->Struct.polymorphic_params = check_record_polymorphic_params( ctx, st->polymorphic_params, &struct_type->Struct.is_polymorphic, |