Fixed nested datapin discovery
This commit is contained in:
parent
1c11b8a5e9
commit
98fcad5a94
@ -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;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user