diff options
author | David Blaikie <dblaikie@gmail.com> | 2012-01-17 02:30:50 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2012-01-17 02:30:50 +0000 |
commit | f47fa304a4ee7ab0db34210b7043743cc4dd3b8b (patch) | |
tree | d898d1fd590a170b2fb70f09907d8002943555e9 /clang/lib/Frontend/LangStandards.cpp | |
parent | 5c93906cbf7999664986ab7c983ce6e61d1b09ee (diff) | |
download | bcm5719-llvm-f47fa304a4ee7ab0db34210b7043743cc4dd3b8b.tar.gz bcm5719-llvm-f47fa304a4ee7ab0db34210b7043743cc4dd3b8b.zip |
Remove unnecessary default cases in switches over enums.
This allows -Wswitch-enum to find switches that need updating when these enums are modified.
llvm-svn: 148281
Diffstat (limited to 'clang/lib/Frontend/LangStandards.cpp')
-rw-r--r-- | clang/lib/Frontend/LangStandards.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Frontend/LangStandards.cpp b/clang/lib/Frontend/LangStandards.cpp index abb521ba27f..f86a574c30a 100644 --- a/clang/lib/Frontend/LangStandards.cpp +++ b/clang/lib/Frontend/LangStandards.cpp @@ -19,14 +19,13 @@ using namespace clang::frontend; const LangStandard &LangStandard::getLangStandardForKind(Kind K) { switch (K) { - default: - llvm_unreachable("Invalid language kind!"); case lang_unspecified: llvm::report_fatal_error("getLangStandardForKind() on unspecified kind"); #define LANGSTANDARD(id, name, desc, features) \ case lang_##id: return Lang_##id; #include "clang/Frontend/LangStandards.def" } + llvm_unreachable("Invalid language kind!"); } const LangStandard *LangStandard::getLangStandardForName(StringRef Name) { |