From 28cd54cdbba699707df39762f7f2095ed812f35e Mon Sep 17 00:00:00 2001 From: Jacques Pienaar Date: Tue, 4 Feb 2020 10:34:42 -0800 Subject: [PATCH] [mlir] Fix clang 5 warning for missing braces --- mlir/test/lib/TestDialect/TestPatterns.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/test/lib/TestDialect/TestPatterns.cpp b/mlir/test/lib/TestDialect/TestPatterns.cpp index 0f976a2..3033005 100644 --- a/mlir/test/lib/TestDialect/TestPatterns.cpp +++ b/mlir/test/lib/TestDialect/TestPatterns.cpp @@ -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 values = {fop.getArgument(i), fop.getArgument(j)}; + std::array values = {{fop.getArgument(i), fop.getArgument(j)}}; SmallVector inferedReturnTypes; if (succeeded(OpTy::inferReturnTypes(context, llvm::None, values, op->getAttrs(), op->getRegions(), -- 2.7.4