Kill warning when compiling in optimized mode
authorChris Lattner <sabre@nondot.org>
Thu, 9 Oct 2003 20:43:55 +0000 (20:43 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 9 Oct 2003 20:43:55 +0000 (20:43 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8989 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Type.h

index 3ed2d2dd7abb611e22bd954c6b0bc8eac2f2fa3b..f8202ae40c66c61f229663ebdef9af845d64f5b8 100644 (file)
@@ -206,6 +206,7 @@ public:
   ///
   virtual const Type *getContainedType(unsigned i) const {
     assert(0 && "No contained types!");
+    return 0;
   }
 
   /// getNumContainedTypes - Return the number of types in the derived type