Skip to content

Commit a802de7

Browse files
fixup! no else after break
1 parent 5212ee1 commit a802de7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

llvm/utils/TableGen/SubtargetEmitter.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -908,7 +908,8 @@ SubtargetEmitter::FindWriteResources(const CodeGenSchedRW &SchedWrite,
908908
if (!AliasDef && SchedWrite.TheDef == WR->getValueAsDef("WriteType")) {
909909
ResDef = WR;
910910
break;
911-
} else if (AliasDef == WR->getValueAsDef("WriteType")) {
911+
}
912+
if (AliasDef == WR->getValueAsDef("WriteType")) {
912913
if (ResDef) {
913914
PrintFatalError(WR->getLoc(), "Resources are defined for both "
914915
"SchedWrite and its alias on processor " +
@@ -967,7 +968,8 @@ Record *SubtargetEmitter::FindReadAdvance(const CodeGenSchedRW &SchedRead,
967968
if (!AliasDef && AliasDef == RA->getValueAsDef("ReadType")) {
968969
ResDef = RA;
969970
break;
970-
} else if (SchedRead.TheDef == RA->getValueAsDef("ReadType")) {
971+
}
972+
if (SchedRead.TheDef == RA->getValueAsDef("ReadType")) {
971973
if (ResDef) {
972974
PrintFatalError(RA->getLoc(), "Resources are defined for both "
973975
"SchedRead and its alias on processor " +

0 commit comments

Comments
 (0)