From 7499b461cb522f1e17f50cfc5bd44a7baae80067 Mon Sep 17 00:00:00 2001 From: xqdan Date: Wed, 7 Nov 2018 04:59:54 +0800 Subject: [PATCH] fix asan check heap-use-after-free (#2071) --- topi/include/topi/reduction.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topi/include/topi/reduction.h b/topi/include/topi/reduction.h index d68b9b390419..777c103ec950 100644 --- a/topi/include/topi/reduction.h +++ b/topi/include/topi/reduction.h @@ -262,7 +262,7 @@ using FIdentity = std::function(std::vector types)>; inline FCommReduce MakeCommReducer(FCombine fcombine, FIdentity fidentity, std::string name = "reduce") { - return [fcombine, fidentity, &name] + return [fcombine, fidentity, name] (Array exprs, const Array& axis, Expr* condition) { Array lhs, rhs; std::vector dtypes;