summaryrefslogtreecommitdiffstats
path: root/clang/lib/FrontendTool
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2012-01-17 02:30:50 +0000
committerDavid Blaikie <dblaikie@gmail.com>2012-01-17 02:30:50 +0000
commitf47fa304a4ee7ab0db34210b7043743cc4dd3b8b (patch)
treed898d1fd590a170b2fb70f09907d8002943555e9 /clang/lib/FrontendTool
parent5c93906cbf7999664986ab7c983ce6e61d1b09ee (diff)
downloadbcm5719-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/FrontendTool')
-rw-r--r--clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
index fec12e3b11d..2782a85beb6 100644
--- a/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
+++ b/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
@@ -32,9 +32,6 @@ static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) {
using namespace clang::frontend;
switch (CI.getFrontendOpts().ProgramAction) {
- default:
- llvm_unreachable("Invalid program action!");
-
case ASTDump: return new ASTDumpAction();
case ASTDumpXML: return new ASTDumpXMLAction();
case ASTPrint: return new ASTPrintAction();
@@ -81,6 +78,7 @@ static FrontendAction *CreateFrontendBaseAction(CompilerInstance &CI) {
case RunAnalysis: return new ento::AnalysisAction();
case RunPreprocessorOnly: return new PreprocessOnlyAction();
}
+ llvm_unreachable("Invalid program action!");
}
static FrontendAction *CreateFrontendAction(CompilerInstance &CI) {
OpenPOWER on IntegriCloud