projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
531fad7
)
[mlir] Fix clang 5 warning for missing braces
author
Jacques Pienaar
<jpienaar@google.com>
Tue, 4 Feb 2020 18:34:42 +0000
(10:34 -0800)
committer
Jacques Pienaar
<jpienaar@google.com>
Tue, 4 Feb 2020 18:35:47 +0000
(10:35 -0800)
mlir/test/lib/TestDialect/TestPatterns.cpp
patch
|
blob
|
history
diff --git
a/mlir/test/lib/TestDialect/TestPatterns.cpp
b/mlir/test/lib/TestDialect/TestPatterns.cpp
index
0f976a2
..
3033005
100644
(file)
--- 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<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(),