From 1f5d212ca720b4e82c14c79c4a96b6ccc4fc3307 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 4 Nov 2008 16:08:57 +0000 Subject: [PATCH] Add a return statement to suppress warnings in NDEBUG builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58702 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/ValueTypes.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/VMCore/ValueTypes.cpp b/lib/VMCore/ValueTypes.cpp index d02a538eb24..22449f9040a 100644 --- a/lib/VMCore/ValueTypes.cpp +++ b/lib/VMCore/ValueTypes.cpp @@ -71,6 +71,7 @@ unsigned MVT::getExtendedSizeInBits() const { if (const VectorType *VTy = dyn_cast(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".