Fixed MSVC compile warning issue introduced in r232837
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 22 Mar 2015 13:38:36 +0000 (13:38 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 22 Mar 2015 13:38:36 +0000 (13:38 +0000)
- was reporting 'warning C4715: 'getType32' : not all control paths return a value'

llvm-svn: 232913

llvm/lib/Target/X86/MCTargetDesc/X86ELFObjectWriter.cpp

index 1b70a7c..44b2398 100644 (file)
@@ -164,7 +164,8 @@ enum X86_32RelType { RT32_32, RT32_16, RT32_8 };
 
 static X86_32RelType getType32(X86_64RelType T) {
   switch (T) {
-  case RT64_64:
+  default:
+  //case RT64_64:
     llvm_unreachable("Unimplemented");
   case RT64_32:
   case RT64_32S: