From 98fcad5a94c115e4f380e01ceab7fb1827124cac Mon Sep 17 00:00:00 2001 From: York Jasper Niebuhr Date: Fri, 3 Apr 2026 23:58:28 +0200 Subject: [PATCH] Fixed nested datapin discovery --- pinpoint/stage0/on_finish_decl.cpp | 4 +++- plan.txt | 1 - 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pinpoint/stage0/on_finish_decl.cpp b/pinpoint/stage0/on_finish_decl.cpp index fca19fc..69eb3eb 100644 --- a/pinpoint/stage0/on_finish_decl.cpp +++ b/pinpoint/stage0/on_finish_decl.cpp @@ -53,7 +53,9 @@ static bool compile_datapin(tree type, DataPin& pin, std::size_t offset = 0, std continue; 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; diff --git a/plan.txt b/plan.txt index 8338846..6f881ee 100644 --- a/plan.txt +++ b/plan.txt @@ -1,4 +1,3 @@ -Nested data pins have to work Collect alignment data from struct members Fix bit fields in place