[lld] r249650 - Remove a default which immediately breaks.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 7 20:21:29 PDT 2015


Author: ruiu
Date: Wed Oct  7 22:21:29 2015
New Revision: 249650

URL: http://llvm.org/viewvc/llvm-project?rev=249650&view=rev
Log:
Remove a default which immediately breaks.

getID()'s return type is unsigned int, so I don't think we need this
default for -Wswitch-enum.

Modified:
    lld/trunk/ELF/Driver.cpp

Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=249650&r1=249649&r2=249650&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Wed Oct  7 22:21:29 2015
@@ -206,8 +206,6 @@ void LinkerDriver::link(ArrayRef<const c
     case OPT_no_whole_archive:
       Config->WholeArchive = false;
       break;
-    default:
-      break;
     }
   }
 




More information about the llvm-commits mailing list