fix stack reference

This commit is contained in:
Nikita Smith
2026-02-05 17:43:19 -08:00
parent 2ca68c1039
commit 6d8cbe8e60
3 changed files with 9 additions and 8 deletions
+1 -1
View File
@@ -2131,7 +2131,7 @@ rdim_serialized_section_bundle_from_bake_results(RDIM_BakeResults *results)
{ {
RDIM_SerializedSectionBundle bundle; RDIM_SerializedSectionBundle bundle;
rdim_memzero_struct(&bundle); rdim_memzero_struct(&bundle);
bundle.sections[RDI_SectionKind_TopLevelInfo] = rdim_serialized_section_make_unpacked_struct(&results->top_level_info.top_level_info); bundle.sections[RDI_SectionKind_TopLevelInfo] = rdim_serialized_section_make_unpacked_struct(results->top_level_info.top_level_info);
bundle.sections[RDI_SectionKind_StringData] = rdim_serialized_section_make_unpacked_array(results->strings.string_data, results->strings.string_data_size); bundle.sections[RDI_SectionKind_StringData] = rdim_serialized_section_make_unpacked_array(results->strings.string_data, results->strings.string_data_size);
bundle.sections[RDI_SectionKind_StringTable] = rdim_serialized_section_make_unpacked_array(results->strings.string_offs, results->strings.string_offs_count); bundle.sections[RDI_SectionKind_StringTable] = rdim_serialized_section_make_unpacked_array(results->strings.string_offs, results->strings.string_offs_count);
bundle.sections[RDI_SectionKind_IndexRuns] = rdim_serialized_section_make_unpacked_array(results->idx_runs.idx_runs, results->idx_runs.idx_count); bundle.sections[RDI_SectionKind_IndexRuns] = rdim_serialized_section_make_unpacked_array(results->idx_runs.idx_runs, results->idx_runs.idx_count);
+1 -1
View File
@@ -1285,7 +1285,7 @@ struct RDIM_LineRec
typedef struct RDIM_TopLevelInfoBakeResult RDIM_TopLevelInfoBakeResult; typedef struct RDIM_TopLevelInfoBakeResult RDIM_TopLevelInfoBakeResult;
struct RDIM_TopLevelInfoBakeResult struct RDIM_TopLevelInfoBakeResult
{ {
RDI_TopLevelInfo top_level_info; RDI_TopLevelInfo *top_level_info;
}; };
typedef struct RDIM_BinarySectionBakeResult RDIM_BinarySectionBakeResult; typedef struct RDIM_BinarySectionBakeResult RDIM_BinarySectionBakeResult;
+7 -6
View File
@@ -2990,12 +2990,13 @@ rdim_bake(Arena *arena, RDIM_BakeParams *params)
{ {
if(lane_idx() == lane_from_task_idx(0)) ProfScope("bake top level info") if(lane_idx() == lane_from_task_idx(0)) ProfScope("bake top level info")
{ {
rdim_shared->baked_top_level_info.top_level_info.arch = params->top_level_info.arch; rdim_shared->baked_top_level_info.top_level_info = push_array(arena, RDI_TopLevelInfo, 1);
rdim_shared->baked_top_level_info.top_level_info.exe_name_string_idx = rdim_bake_idx_from_string(bake_strings, params->top_level_info.exe_name); rdim_shared->baked_top_level_info.top_level_info->arch = params->top_level_info.arch;
rdim_shared->baked_top_level_info.top_level_info.exe_hash = params->top_level_info.exe_hash; rdim_shared->baked_top_level_info.top_level_info->exe_name_string_idx = rdim_bake_idx_from_string(bake_strings, params->top_level_info.exe_name);
rdim_shared->baked_top_level_info.top_level_info.voff_max = params->top_level_info.voff_max; rdim_shared->baked_top_level_info.top_level_info->exe_hash = params->top_level_info.exe_hash;
rdim_shared->baked_top_level_info.top_level_info.guid = params->top_level_info.guid; rdim_shared->baked_top_level_info.top_level_info->voff_max = params->top_level_info.voff_max;
rdim_shared->baked_top_level_info.top_level_info.producer_name_string_idx = rdim_bake_idx_from_string(bake_strings, params->top_level_info.producer_name); rdim_shared->baked_top_level_info.top_level_info->guid = params->top_level_info.guid;
rdim_shared->baked_top_level_info.top_level_info->producer_name_string_idx = rdim_bake_idx_from_string(bake_strings, params->top_level_info.producer_name);
} }
if(lane_idx() == lane_from_task_idx(1)) ProfScope("bake binary sections") if(lane_idx() == lane_from_task_idx(1)) ProfScope("bake binary sections")
{ {