summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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