Skip to content

[QNN EP] Remove unnecessary std::move to fix warning/error #24493

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

Merged
merged 1 commit into from
Apr 22, 2025

Conversation

adrianlizarraga
Copy link
Contributor

Description

Removes unnecessary std::move on an r-value expression. This caused a compiler warning/error in the Linux Android QNN pipeline.

Motivation and Context

Introduced by PR: #24466

@adrianlizarraga adrianlizarraga requested a review from Copilot April 21, 2025 23:40
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes unnecessary std::move calls on temporary vector constructions for an r-value, eliminating a warning/error encountered in the Linux Android QNN pipeline.

  • Removed std::move on temporary std::vector<uint32_t>{1} construction.
  • Removed std::move on temporary std::vector<uint8_t> construction.
  • Ensured that tensor wrapper addition remains correct post-change.

@adrianlizarraga
Copy link
Contributor Author

@vraspar FYI, to be cherry-picked for ORT 1.22.0

@adrianlizarraga adrianlizarraga merged commit b0e68bd into main Apr 22, 2025
85 of 89 checks passed
@adrianlizarraga adrianlizarraga deleted the adrianl/qnn-fix-cast-op-std-move-warning branch April 22, 2025 01:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants