diff --git a/src/tir/transforms/lower_cross_thread_reduction.cc b/src/tir/transforms/lower_cross_thread_reduction.cc index 630c00f8c1f1..fb5255664af3 100644 --- a/src/tir/transforms/lower_cross_thread_reduction.cc +++ b/src/tir/transforms/lower_cross_thread_reduction.cc @@ -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);