Message ID | CABOHX+fwctV77WzdY4bvybLdEeKM88_1ddUE=_kSqdh2DwuSEQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
Series | [PR,d/87824] Committed return min_align_of_type from alignsize hook. | expand |
diff --git a/gcc/d/d-target.cc b/gcc/d/d-target.cc index 3ae791b5f70..86b042938af 100644 --- a/gcc/d/d-target.cc +++ b/gcc/d/d-target.cc @@ -189,7 +189,7 @@ unsigned Target::alignsize (Type *type) { gcc_assert (type->isTypeBasic ()); - return TYPE_ALIGN_UNIT (build_ctype (type)); + return min_align_of_type (build_ctype (type)); } /* Return GCC field alignment size for type TYPE. */