[SystemZ] Clean up warning
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 18 Feb 2015 09:42:23 +0000 (09:42 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 18 Feb 2015 09:42:23 +0000 (09:42 +0000)
Removed (unreachable) default case in switch to clean up warning:

lib/Target/SystemZ/SystemZISelLowering.cpp:1974:5:
error: default label in switch which covers all enumeration values
[-Werror,-Wcovered-switch-default]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@229658 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/SystemZISelLowering.cpp

index d92ad6a0054508d3e7dd3e7aa0dc4c162ef3e42f..3847187b2eff9cbeadf997072dfebf094c4e971e 100644 (file)
@@ -1969,10 +1969,7 @@ SDValue SystemZTargetLowering::lowerGlobalTLSAddress(GlobalAddressSDNode *Node,
                            Offset, MachinePointerInfo::getConstantPool(),
                            false, false, false, 0);
       break;
-   }
-
-    default:
-      llvm_unreachable("Unknown TLS model.");
+    }
   }
 
   // Add the base and offset together.