[ARM] Fix enum type cast in switch
authorDenis Protivensky <dprotivensky@accesssoftek.com>
Tue, 26 May 2015 11:13:09 +0000 (11:13 +0000)
committerDenis Protivensky <dprotivensky@accesssoftek.com>
Tue, 26 May 2015 11:13:09 +0000 (11:13 +0000)
It caused warning in clang assuming the default
branch would never be reached with the given
switch key type.

llvm-svn: 238194

lld/lib/ReaderWriter/ELF/ARM/ARMTargetHandler.h

index 14a2712..e6e7749 100644 (file)
@@ -71,7 +71,7 @@ public:
 
   SectionOrder getSectionOrder(StringRef name, int32_t contentType,
                                int32_t contentPermissions) override {
-    switch ((ARMELFDefinedAtom::ARMContentType)contentType) {
+    switch (contentType) {
     case ARMELFDefinedAtom::typeARMExidx:
       return ORDER_ARM_EXIDX;
     default: