From b1402b379fa08f3224529d25a6338ba48323beff Mon Sep 17 00:00:00 2001 From: Bing Xu <antinucleon@gmail.com> Date: Mon, 12 Jun 2017 20:28:19 -0700 Subject: [PATCH] [Compile] Fix compile issue with LLVM 8.0 (#181) --- src/op/compute_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/op/compute_op.cc b/src/op/compute_op.cc index be594a6b6..a7c3a0075 100644 --- a/src/op/compute_op.cc +++ b/src/op/compute_op.cc @@ -303,7 +303,7 @@ Stmt MakeCrossThreadReduction( cond = cond && v; } Array<Expr> freduce_args; - freduce_args.push_back(make_const(UInt(32), size)); + freduce_args.push_back(make_const(UInt(32), static_cast<uint32_t>(size))); for (size_t i = 0; i < size; ++i) { freduce_args.push_back(reduces[0]->source[i]); } -- GitLab