Indent auto-generated build method
authorSmit Hinsu <hinsu@google.com>
Wed, 2 Jan 2019 10:39:49 +0000 (02:39 -0800)
committerjpienaar <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

index a07ef384c3d43e615e16f81ba516053cc8c39ac9..870a7bdee33b1a944d023c69afdc56f29e234d0a 100644 (file)
@@ -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"