Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIR] Handle nullptr returned by FindEntryFunc #13852

Merged
merged 2 commits into from
Feb 1, 2023

Conversation

Icemist
Copy link
Contributor

@Icemist Icemist commented Jan 27, 2023

The FindEntryFunc function can return a null pointer. In development I got this situation, which appears as a segfault.

@tvm-bot
Copy link
Collaborator

tvm-bot commented Jan 27, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

Generated by tvm-bot

@Icemist
Copy link
Contributor Author

Icemist commented Jan 27, 2023

cc @masahi @echuraev

@junrushao
Copy link
Member

Quick question: do you think it’s necessary to add a unittest?

Copy link
Contributor

@echuraev echuraev left a comment

Choose a reason for hiding this comment

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

In general LGTM. But the same question as @junrushao have already asked. Can you add a unit test?

Copy link
Contributor

@echuraev echuraev left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks

@junrushao junrushao merged commit a1229f6 into apache:main Feb 1, 2023
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.

4 participants