diff --git a/ir/irtypestruct.cpp b/ir/irtypestruct.cpp index a1cd6750..d9fa3937 100644 --- a/ir/irtypestruct.cpp +++ b/ir/irtypestruct.cpp @@ -181,7 +181,7 @@ IrTypeStruct* IrTypeStruct::get(StructDeclaration* sd) size_t offset = 0; size_t field_index = 0; - bool packed = (sd->type->alignsize() == 1); + bool packed = (sd->alignment == 1); // first we sort the list by offset std::sort(data.begin(), data.end(), var_offset_sort_cb); diff --git a/tests/d2/dmd-testsuite b/tests/d2/dmd-testsuite index e8c14b05..34ab16a4 160000 --- a/tests/d2/dmd-testsuite +++ b/tests/d2/dmd-testsuite @@ -1 +1 @@ -Subproject commit e8c14b05ca3e3642c2fe343a912cd2e800864414 +Subproject commit 34ab16a4fc65389527c4a3eb8211c86005b54444