Skip to content

Commit b0e68bd

Browse files
[QNN EP] Remove unnecessary std::move to fix warning/error (#24493)
### 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
1 parent 5babe2c commit b0e68bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: onnxruntime/core/providers/qnn/builder/opbuilder/cast_op_builder.cc

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ Status CastOpBuilder::ProcessExtraInputForNotEqual(QnnModelWrapper& qnn_model_wr
7878
QNN_TENSOR_TYPE_STATIC,
7979
qnn_data_type,
8080
QnnQuantParamsWrapper(),
81-
std::move(std::vector<uint32_t>{1}),
82-
std::move(std::vector<uint8_t>(utils::GetElementSizeByType(qnn_data_type), 0)));
81+
std::vector<uint32_t>{1},
82+
std::vector<uint8_t>(utils::GetElementSizeByType(qnn_data_type), 0));
8383
ORT_RETURN_IF_NOT(qnn_model_wrapper.AddTensorWrapper(std::move(input_tensor_wrapper)),
8484
"Failed to add additional input tensor for QNN Cast node that will be replaced by NotEqual.");
8585
input_names.push_back(input_name);

0 commit comments

Comments
 (0)