Fixed formatting in packed-struct-zig Skipped packed_structs tests in stage2 simplified packed struct tests
This commit is contained in:
@@ -8334,7 +8334,7 @@ static LLVMValueRef gen_const_val(CodeGen *g, ZigValue *const_val, const char *n
|
||||
break;
|
||||
}
|
||||
|
||||
if (src_field_index + 1 == src_field_index_end) {
|
||||
if (src_field_index + 1 == src_field_index_end && !type_entry->data.structure.misaligned_field) {
|
||||
ZigValue *field_val = const_val->data.x_struct.fields[src_field_index];
|
||||
LLVMValueRef val = gen_const_val(g, field_val, "");
|
||||
fields[type_struct_field->gen_index] = val;
|
||||
|
||||
Reference in New Issue
Block a user