In this unreachable code, return an initialized value.

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
This commit is contained in:
Duncan Sands 2009-07-03 16:00:23 +00:00
parent d44d4bf04b
commit 98749f851d

View File

@ -256,7 +256,7 @@ public:
return getTypeAction(NVT) == Promote ? getTypeToTransformTo(NVT) : NVT; return getTypeAction(NVT) == Promote ? getTypeToTransformTo(NVT) : NVT;
} }
assert(0 && "Unsupported extended type!"); 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 /// getTypeToExpandTo - For types supported by the target, this is an
@ -557,7 +557,7 @@ public:
return getRegisterType(getTypeToTransformTo(VT)); return getRegisterType(getTypeToTransformTo(VT));
} }
assert(0 && "Unsupported extended type!"); 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 /// getNumRegisters - Return the number of registers that this ValueType will