forked from OSchip/llvm-project
[Tablegen][SubtargetEmitter] Add a default case to the auto-generated switch in MCSubtargetInfo::resolveVariantSchedClass(). NFC
llvm-svn: 333293
This commit is contained in:
parent
5b79ffc5bc
commit
6c40057bd0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue