Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix type alignment handling for enums
The type alignment handling code used to determine the alignment size for a given datatype was treating enums as if they were integers, but that is incorrect. It should (just like integers and pointers) have its alignment set to match its size, but it should avoid the explicit void-checking that is done for integers. Without this patch, libdtrace linked with newer versions of libctf will see a test failure in unittest/sizeof/tst.SizeofDataTypes.d for datatype 'new_enum'. Signed-off-by: Kris Van Hees <kris.van.hees@oracle.com>
- Loading branch information