In this unreachable code, return an initialized value.
authorDuncan Sands <baldrick@free.fr>
Fri, 3 Jul 2009 16:00:23 +0000 (16:00 +0000)
committerDuncan Sands <baldrick@free.fr>
Fri, 3 Jul 2009 16:00:23 +0000 (16:00 +0000)
This stops gcc warning about possible uses of an uninitialized
value when compiling with assertions turned off.

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

include/llvm/Target/TargetLowering.h

index 05f30e2a365cf07de9c204c33fe132e7a6ddebc9..d24ca679ab76badf985c01f8b7586ae42658ad6e 100644 (file)
@@ -256,7 +256,7 @@ public:
         return getTypeAction(NVT) == Promote ? getTypeToTransformTo(NVT) : NVT;
     }
     assert(0 && "Unsupported extended type!");
-    return MVT(); // Not reached
+    return MVT(MVT::Other); // Not reached
   }
 
   /// getTypeToExpandTo - For types supported by the target, this is an
@@ -557,7 +557,7 @@ public:
       return getRegisterType(getTypeToTransformTo(VT));
     }
     assert(0 && "Unsupported extended type!");
-    return MVT(); // Not reached
+    return MVT(MVT::Other); // Not reached
   }
 
   /// getNumRegisters - Return the number of registers that this ValueType will