Currently in TypeGraph when generating inst::Field objects in the generated source we use the sizeof operator to construct the static and exclusive size. As you can't use sizeof() on a bitfield this generates invalid code. This fix special cases bit fields and sets the static and exclusive size to 0 as there size will be rolled up in the parent object.
Test plan
A 'make test` has no new failures. This fix was tested against an object in a Meta source base.
Summary
Currently in TypeGraph when generating inst::Field objects in the generated source we use the
sizeof
operator to construct the static and exclusive size. As you can't use sizeof() on a bitfield this generates invalid code. This fix special cases bit fields and sets the static and exclusive size to 0 as there size will be rolled up in the parent object.Test plan
A 'make test` has no new failures. This fix was tested against an object in a Meta source base.