From 2bd335470f8939782f3df7f6180282d3825d4f09 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Tue, 10 Jan 2012 16:47:17 +0000 Subject: Remove unnecessary default cases in switches that cover all enum values. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147855 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llc/llc.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'tools/llc') diff --git a/tools/llc/llc.cpp b/tools/llc/llc.cpp index 61e31cd043..790f9e6027 100644 --- a/tools/llc/llc.cpp +++ b/tools/llc/llc.cpp @@ -296,7 +296,6 @@ static tool_output_file *GetOutputStream(const char *TargetName, OutputFilename = GetFileNameRoot(InputFilename); switch (FileType) { - default: assert(0 && "Unknown file type"); case TargetMachine::CGFT_AssemblyFile: if (TargetName[0] == 'c') { if (TargetName[1] == 0) @@ -324,7 +323,6 @@ static tool_output_file *GetOutputStream(const char *TargetName, // Decide if we need "binary" output. bool Binary = false; switch (FileType) { - default: assert(0 && "Unknown file type"); case TargetMachine::CGFT_AssemblyFile: break; case TargetMachine::CGFT_ObjectFile: -- cgit v1.2.3-18-g5258