@@ -1347,8 +1347,9 @@ void AsmMatcherInfo::buildRegisterClasses(
13471347 CI->ClassName = RC.getName ();
13481348 CI->Name = " MCK_" + RC.getName ();
13491349 CI->ValueName = RC.getName ();
1350- } else
1350+ } else {
13511351 CI->ValueName = CI->ValueName + " ," + RC.getName ();
1352+ }
13521353
13531354 const Init *DiagnosticType = Def->getValueInit (" DiagnosticType" );
13541355 if (const StringInit *SI = dyn_cast<StringInit>(DiagnosticType))
@@ -1379,8 +1380,9 @@ void AsmMatcherInfo::buildRegisterClasses(
13791380 CI->ClassName = std::string (Rec->getName ());
13801381 CI->Name = " MCK_" + Rec->getName ().str ();
13811382 CI->ValueName = std::string (Rec->getName ());
1382- } else
1383+ } else {
13831384 CI->ValueName = CI->ValueName + " ," + Rec->getName ().str ();
1385+ }
13841386 }
13851387}
13861388
@@ -1663,13 +1665,14 @@ void AsmMatcherInfo::buildInfo() {
16631665 // Add the alias to the matchables list.
16641666 NewMatchables.push_back (std::move (AliasII));
16651667 }
1666- } else
1668+ } else {
16671669 // FIXME: The tied operands checking is not yet integrated with the
16681670 // framework for reporting multiple near misses. To prevent invalid
16691671 // formats from being matched with an alias if a tied-operands check
16701672 // would otherwise have disallowed it, we just disallow such constructs
16711673 // in TableGen completely.
16721674 II->buildAliasResultOperands (!ReportMultipleNearMisses);
1675+ }
16731676 }
16741677 if (!NewMatchables.empty ())
16751678 Matchables.insert (Matchables.end (),
@@ -2303,9 +2306,10 @@ emitConvertFuncs(CodeGenTarget &Target, StringRef ClassName,
23032306 << utostr (std::get<2 >(KV.first )) << " },\n " ;
23042307 }
23052308 OS << " };\n\n " ;
2306- } else
2309+ } else {
23072310 OS << " static const uint8_t TiedAsmOperandTable[][3] = "
23082311 " { /* empty */ {0, 0, 0} };\n\n " ;
2312+ }
23092313
23102314 OS << " namespace {\n " ;
23112315
@@ -2503,8 +2507,9 @@ static void emitValidateOperandClass(const CodeGenTarget &Target,
25032507 OS << " return " << Info.Target .getName () << " AsmParser::Match_"
25042508 << CI.DiagnosticType << " ;\n " ;
25052509 OS << " break;\n " ;
2506- } else
2510+ } else {
25072511 OS << " break;\n " ;
2512+ }
25082513 OS << " }\n " ;
25092514 }
25102515 OS << " } // end switch (Kind)\n\n " ;
0 commit comments