[llvm-commits] [llvm] r58702 - /llvm/trunk/lib/VMCore/ValueTypes.cpp

Dan Gohman gohman at apple.com
Tue Nov 4 08:08:58 PST 2008


Author: djg
Date: Tue Nov  4 10:08:57 2008
New Revision: 58702

URL: http://llvm.org/viewvc/llvm-project?rev=58702&view=rev
Log:
Add a return statement to suppress warnings in NDEBUG builds.

Modified:
    llvm/trunk/lib/VMCore/ValueTypes.cpp

Modified: llvm/trunk/lib/VMCore/ValueTypes.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/ValueTypes.cpp?rev=58702&r1=58701&r2=58702&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/ValueTypes.cpp (original)
+++ llvm/trunk/lib/VMCore/ValueTypes.cpp Tue Nov  4 10:08:57 2008
@@ -71,6 +71,7 @@
   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".





More information about the llvm-commits mailing list