From: Duncan Sands Date: Fri, 3 Jul 2009 16:00:23 +0000 (+0000) Subject: In this unreachable code, return an initialized value. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=98749f851d64f6387caeeb0780d1750341e3a6a0;p=oota-llvm.git 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 --- diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 05f30e2a365..d24ca679ab7 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -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