Commit 76b5a699 by xqdan Committed by Tianqi Chen

fix asan check heap-use-after-free (#2071)

parent c294dd5d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment