Skip to content

Make Function::AddBasicBlock set the parent of the block #3912

@afd

Description

@afd

Currently AddBasicBlock does not set the parent of the given block to be the function to which it is being added.

Overlooking this has been the source of a few bugs in spriv-fuzz.

@s-perron and @alan-baker can you think of any reason why we shouldn't change AddBasicBlock so that it always sets the parent? If not then I will make the change.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions