summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-11-04 16:08:57 +0000
committerDan Gohman <gohman@apple.com>2008-11-04 16:08:57 +0000
commit72d10ab9ada15e2192efbcd32d8abe111b0dec7e (patch)
treef6896d254661a6553615085952eed853dd000e8c /llvm/lib/VMCore
parentade09cd9d36b58044b8d5b60c19827015c35a103 (diff)
downloadbcm5719-llvm-72d10ab9ada15e2192efbcd32d8abe111b0dec7e.tar.gz
bcm5719-llvm-72d10ab9ada15e2192efbcd32d8abe111b0dec7e.zip
Add a return statement to suppress warnings in NDEBUG builds.
llvm-svn: 58702
Diffstat (limited to 'llvm/lib/VMCore')
-rw-r--r--llvm/lib/VMCore/ValueTypes.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/VMCore/ValueTypes.cpp b/llvm/lib/VMCore/ValueTypes.cpp
index d02a538eb24..22449f9040a 100644
--- a/llvm/lib/VMCore/ValueTypes.cpp
+++ b/llvm/lib/VMCore/ValueTypes.cpp
@@ -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".
OpenPOWER on IntegriCloud