Skip to content

Commit

Permalink
[Frontend] Fix build break after 67c82d6
Browse files Browse the repository at this point in the history
Remove the `default` label from a switch that covers all cases.
  • Loading branch information
Krzysztof Parzyszek committed Mar 6, 2024
1 parent 0bd9255 commit deff460
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/utils/TableGen/DirectiveEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit deff460

Please sign in to comment.