diff options
| author | gingerBill <bill@gingerbill.org> | 2021-03-24 22:39:29 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-03-24 22:39:29 +0000 |
| commit | 1aecd7f5ff6fa851aa50d87d78709c5097c8aee0 (patch) | |
| tree | c82dfc7b39f572535ec442a0855a3105db9b3c72 | |
| parent | 5faf859a561e63000184b592154c6503be024fb4 (diff) | |
Add support for soa slice reference iteration
| -rw-r--r-- | src/check_stmt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 402324cdd..9d02d003d 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1780,6 +1780,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { case Type_Struct: if (t->Struct.soa_kind != StructSoa_None) { is_soa = true; + if (is_ptr) use_by_reference_for_value = true; array_add(&vals, t->Struct.soa_elem); array_add(&vals, t_int); if (!build_context.use_llvm_api) { |