Skip to content

Commit

Permalink
[BugFix] Fix a wrong use of std::move() in cross-thread reduction l…
Browse files Browse the repository at this point in the history
…owering (apache#9728)

* [BugFix] Fix a wrong use of `std::move()` in cross-thread reduction lowering

* Remove
  • Loading branch information
MasterJH5574 authored and ylc committed Jan 13, 2022
1 parent 654823c commit cc26812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tir/transforms/lower_cross_thread_reduction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ Buffer MakeScratchpad(String name, const DataType& dtype) {
/*shape=*/{Integer(1)},
/*strides=*/{Integer(1)},
/*elem_offset=*/PrimExpr{nullptr},
/*name=*/std::move(name),
/*name=*/name,
/*data_alignment=*/0,
/*offset_factor=*/0,
/*buffer_type=*/kDefault);
Expand Down

0 comments on commit cc26812

Please sign in to comment.