Skip to content

Commit

Permalink
Use std::make_pair and std::make_tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
MasterJH5574 committed Jul 28, 2021
1 parent c11337a commit ec86ea5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tir/schedule/primitive/reduction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ std::pair<BufferStore, BufferStore> GetBufferStoreNodes(const ScheduleState& sel
throw InitBodyNotSameBufferAccessError(self->mod, block);
}
}
return {GetRef<BufferStore>(init), GetRef<BufferStore>(body)};
return std::make_pair(GetRef<BufferStore>(init), GetRef<BufferStore>(body));
}

/*!
Expand All @@ -359,7 +359,7 @@ std::tuple<CommReducer, PrimExpr, PrimExpr> GetReducerAndCombinerLhsRhs(
if (!matched) {
throw NoMatchedReducerError(self->mod, identity, combiner);
}
return {std::move(reducer), std::move(combiner_lhs), std::move(combiner_rhs)};
return std::make_tuple(std::move(reducer), std::move(combiner_lhs), std::move(combiner_rhs));
}

/*!
Expand Down

0 comments on commit ec86ea5

Please sign in to comment.