Skip to content

Conversation

@RCoeurjoly
Copy link

FlattenMemRefPass assumes memref.global initializers are DenseElementsAttr and crashes when they are missing or use other ElementsAttr kinds (e.g. dense_resource). Add a guard to avoid dereferencing unsupported initializers.

Fixes #9258.

Copy link
Member

@uenoku uenoku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

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.

FlattenMemRefPass crashes on memref.global

2 participants