Fixed nested datapin discovery

This commit is contained in:
York Jasper Niebuhr 2026-04-03 23:58:28 +02:00
parent 1c11b8a5e9
commit 98fcad5a94
2 changed files with 3 additions and 2 deletions

View File

@ -53,7 +53,9 @@ static bool compile_datapin(tree type, DataPin& pin, std::size_t offset = 0, std
continue; continue;
tree field_type = TREE_TYPE(field); tree field_type = TREE_TYPE(field);
res = (res || compile_datapin(field_type, pin, offset + field_offset, level + 1));
bool sub_res = compile_datapin(field_type, pin, offset + field_offset, level + 1);
res = (res || sub_res);
} }
return res; return res;

View File

@ -1,4 +1,3 @@
Nested data pins have to work
Collect alignment data from struct members Collect alignment data from struct members
Fix bit fields in place Fix bit fields in place