From deff460b46dfcc8d6d5917a2b78c0d52edbe4afb Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Wed, 6 Mar 2024 11:33:57 -0600 Subject: [PATCH] [Frontend] Fix build break after 67c82d6ffb4b Remove the `default` label from a switch that covers all cases. --- llvm/utils/TableGen/DirectiveEmitter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/utils/TableGen/DirectiveEmitter.cpp b/llvm/utils/TableGen/DirectiveEmitter.cpp index 5a35d320227d5b..e0edf1720f8ac5 100644 --- a/llvm/utils/TableGen/DirectiveEmitter.cpp +++ b/llvm/utils/TableGen/DirectiveEmitter.cpp @@ -655,9 +655,8 @@ static void GenerateGetDirectiveAssociation(const DirectiveLanguage &DirLang, << "::" << getAssocName(F->second) << ";\n"; } } - OS << " default:\n"; - OS << " llvm_unreachable(\"Unexpected directive\");\n"; OS << " } // switch(Dir)\n"; + OS << " llvm_unreachable(\"Unexpected directive\");\n"; OS << "}\n"; }