Skip to content
Snippets Groups Projects
Commit 76b5a699 authored by xqdan's avatar xqdan Committed by Tianqi Chen
Browse files

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

parent c294dd5d
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment