Skip to content

Conversation

@ahatanaka
Copy link

This fixes a bug where memset was called to initialize a class with a base class that has an address-discriminated field or a vtable.

This happens because ConstStructBuilder::Build leaves early with an empty Elems after failing to initialize the address-discriminated field or the vtable field with a constant, which causes
ConstantAggregateBuilder::buildFrom to return undef.

rdar://117175834

of its base class cannot be initialized with a constant

This fixes a bug where memset was called to initialize a class with a
base class that has an address-discriminated field or a vtable.

This happens because ConstStructBuilder::Build leaves early with an
empty Elems after failing to initialize the address-discriminated field
or the vtable field with a constant, which causes
ConstantAggregateBuilder::buildFrom to return undef.

rdar://117175834
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants