Skip to content

Commit

Permalink
fix asan check heap-use-after-free (apache#2071)
Browse files Browse the repository at this point in the history
  • Loading branch information
xqdan authored and tqchen committed Nov 6, 2018
1 parent b9bfa76 commit 7499b46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion topi/include/topi/reduction.h
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ using FIdentity = std::function<Array<Expr>(std::vector<Type> types)>;
inline FCommReduce MakeCommReducer(FCombine fcombine,
FIdentity fidentity,
std::string name = "reduce") {
return [fcombine, fidentity, &name]
return [fcombine, fidentity, name]
(Array<Expr> exprs, const Array<IterVar>& axis, Expr* condition) {
Array<Var> lhs, rhs;
std::vector<Type> dtypes;
Expand Down

0 comments on commit 7499b46

Please sign in to comment.