Skip to content

Commit deff460

Browse files
author
Krzysztof Parzyszek
committed
[Frontend] Fix build break after 67c82d6
Remove the `default` label from a switch that covers all cases.
1 parent 0bd9255 commit deff460

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/utils/TableGen/DirectiveEmitter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,9 +655,8 @@ static void GenerateGetDirectiveAssociation(const DirectiveLanguage &DirLang,
655655
<< "::" << getAssocName(F->second) << ";\n";
656656
}
657657
}
658-
OS << " default:\n";
659-
OS << " llvm_unreachable(\"Unexpected directive\");\n";
660658
OS << " } // switch(Dir)\n";
659+
OS << " llvm_unreachable(\"Unexpected directive\");\n";
661660
OS << "}\n";
662661
}
663662

0 commit comments

Comments
 (0)