Add a return statement to suppress warnings in NDEBUG builds.
authorDan Gohman <gohman@apple.com>
Tue, 4 Nov 2008 16:08:57 +0000 (16:08 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 4 Nov 2008 16:08:57 +0000 (16:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58702 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/ValueTypes.cpp

index d02a538eb248beaf9d172f47211583ed2abc306d..22449f9040adf08c5be2553f850a51373f790893 100644 (file)
@@ -71,6 +71,7 @@ unsigned MVT::getExtendedSizeInBits() const {
   if (const VectorType *VTy = dyn_cast<VectorType>(LLVMTy))
     return VTy->getBitWidth();
   assert(false && "Unrecognized extended type!");
+  return 0; // Suppress warnings.
 }
 
 /// getMVTString - This function returns value type as a string, e.g. "i32".