[Tablegen][SubtargetEmitter] Add a default case to the auto-generated switch in MCSubtargetInfo::resolveVariantSchedClass(). NFC

llvm-svn: 333293
This commit is contained in:
Andrea Di Biagio 2018-05-25 18:25:54 +00:00
parent 5b79ffc5bc
commit 6c40057bd0
1 changed files with 3 additions and 1 deletions

View File

@ -1556,7 +1556,9 @@ void SubtargetEmitter::emitSchedModelHelpersImpl(
OS << " return " << SC.Index << ";\n";
OS << " break;\n";
}
OS << " };\n";
// Add a default case to avoid generating a potentially empty switch.
OS << " default : break;\n"
<< " };\n";
}
if (OnlyExpandMCInstPredicates) {