Skip to content

Conversation

@marzipankaiser
Copy link
Contributor

Fixes #447 by (variant A):

  • Adding a new variant Unsupported for ExternBodys in all IRs.
  • Generating this in ResolveExternDefs if no matching clauses were found.
  • In the backends, reporting the warning for Unsupported and generating code similar to holes.

Also moves the generation of the other warnings into ResolveExternDefs.

@marzipankaiser marzipankaiser marked this pull request as ready for review April 30, 2024 09:03
"""call void @hole()
|unreachable
|""".stripMargin)
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@phischu can you look at this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Looks ok

@marzipankaiser marzipankaiser merged commit 3127a70 into master May 6, 2024
@marzipankaiser marzipankaiser deleted the feature/better-extern-warnings-A branch May 6, 2024 14:13
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.

Output "unsupported extern" warnings only if used

4 participants