Commit b1402b37 by Bing Xu Committed by Tianqi Chen

[Compile] Fix compile issue with LLVM 8.0 (#181)

parent 2ce5277f
...@@ -303,7 +303,7 @@ Stmt MakeCrossThreadReduction( ...@@ -303,7 +303,7 @@ Stmt MakeCrossThreadReduction(
cond = cond && v; cond = cond && v;
} }
Array<Expr> freduce_args; 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) { for (size_t i = 0; i < size; ++i) {
freduce_args.push_back(reduces[0]->source[i]); freduce_args.push_back(reduces[0]->source[i]);
} }
......
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