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:
73f5c9c
)
Indent auto-generated build method
author
Smit Hinsu
<hinsu@google.com>
Wed, 2 Jan 2019 10:39:49 +0000
(
02:39
-0800)
committer
jpienaar
<jpienaar@google.com>
Fri, 29 Mar 2019 21:50:38 +0000
(14:50 -0700)
TESTED manually
PiperOrigin-RevId:
227495854
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
patch
|
blob
|
history
diff --git
a/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
b/mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
index a07ef384c3d43e615e16f81ba516053cc8c39ac9..870a7bdee33b1a944d023c69afdc56f29e234d0a 100644
(file)
--- a/
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
+++ b/
mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
@@
-384,7
+384,8
@@
void OpEmitter::emitBuilder() {
// Attributes
if (attrs.empty()) {
- os << " assert(!attributes.size() && \"no attributes expected\");\n}\n";
+ os << " assert(!attributes.size() && \"no attributes expected\");\n"
+ << " }\n";
} else {
os << " assert(attributes.size() >= " << attrs.size()
<< "u && \"not enough attributes\");\n"