[mlir] Fix clang 5 warning for missing braces

This commit is contained in:
Jacques Pienaar 2020-02-04 10:34:42 -08:00
parent 531fad736e
commit 28cd54cdbb
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ static void invokeCreateWithInferedReturnType(Operation *op) {
assert(fop.getNumArguments() >= 2);
for (int i = 0, e = fop.getNumArguments(); i < e; ++i) {
for (int j = 0; j < e; ++j) {
std::array<Value, 2> values = {fop.getArgument(i), fop.getArgument(j)};
std::array<Value, 2> values = {{fop.getArgument(i), fop.getArgument(j)}};
SmallVector<Type, 2> inferedReturnTypes;
if (succeeded(OpTy::inferReturnTypes(context, llvm::None, values,
op->getAttrs(), op->getRegions(),