bugfix udt member parsing

This commit is contained in:
Ryan Fleury
2024-02-17 21:26:23 -08:00
parent b93bb5904a
commit e44128de96
+2 -7
View File
@@ -1652,11 +1652,11 @@ p2r_convert(Arena *arena, P2R_ConvertIn *in)
CV_LeafKind field_kind = *(CV_LeafKind *)read_ptr;
U64 field_leaf_header_size = cv_header_struct_size_from_leaf_kind(field_kind);
U8 *field_leaf_first = read_ptr+2;
U8 *field_leaf_opl = field_leaf_first+field_leaf_header_size;
U8 *field_leaf_opl = field_leaf_first+range->hdr.size-2;
next_read_ptr = field_leaf_opl;
// rjf: skip out-of-bounds fields
if(field_leaf_opl > field_list_opl)
if(field_leaf_first+field_leaf_header_size > field_list_opl)
{
continue;
}
@@ -2561,11 +2561,6 @@ p2r_convert(Arena *arena, P2R_ConvertIn *in)
CV_Reg cv_reg = regrel32->reg;
U32 var_off = regrel32->reg_off;
if(str8_match(name, str8_lit("basics"), 0))
{
int x = 0;
}
// rjf: determine if this is a parameter
RDI_LocalKind local_kind = RDI_LocalKind_Variable;
{