Skip to content

Commit 0260c70

Browse files
committed
fixup! Add braces
1 parent d32dd3e commit 0260c70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/utils/TableGen/SubtargetEmitter.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1588,16 +1588,17 @@ static void emitPredicates(const CodeGenSchedTransition &T,
15881588

15891589
if (Rec->isSubClassOf("FeatureSchedPredicate")) {
15901590
const Record *FR = Rec->getValueAsDef("Feature");
1591-
if (PE.shouldExpandForMC())
1591+
if (PE.shouldExpandForMC()) {
15921592
// MC version of this predicate will be emitted into
15931593
// resolveVariantSchedClassImpl, which accesses MCSubtargetInfo
15941594
// through argument STI.
15951595
SS << "STI.";
1596-
else
1596+
} else {
15971597
// Otherwise, this predicate will be emitted directly into
15981598
// TargetGenSubtargetInfo::resolveSchedClass, which can just access
15991599
// TargetSubtargetInfo / MCSubtargetInfo through `this`.
16001600
SS << "this->";
1601+
}
16011602
SS << "hasFeature(" << PE.getTargetName() << "::" << FR->getName()
16021603
<< ")";
16031604
continue;

0 commit comments

Comments
 (0)