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

Use std::move to avoid warnings on clang-13 #12196

Merged
merged 1 commit into from
Jul 27, 2022

Conversation

vinx13
Copy link
Member

@vinx13 vinx13 commented Jul 26, 2022

Returning an instance of a subclass of the return type disable copy elision, std::move is needed in this case.

@vinx13 vinx13 marked this pull request as ready for review July 26, 2022 23:16
@wrongtest-intellif
Copy link
Contributor

Thank you~ It is happy for macos users :)

@vinx13 vinx13 force-pushed the fix/clang-return-by-name branch from 581af5e to b86e2ca Compare July 27, 2022 17:47
@vinx13 vinx13 merged commit ae3e2a8 into apache:main Jul 27, 2022
xinetzone pushed a commit to daobook/tvm that referenced this pull request Nov 25, 2022
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