For PR351:
[oota-llvm.git] / include / llvm / Type.h
index 18b8adb0cee0d8ad50819bec7cec55eb8d11ea5a..20a3d6d03ef136cc179e484a7e39cc2a77433fd3 100644 (file)
@@ -246,7 +246,8 @@ public:
 
   /// getNumContainedTypes - Return the number of types in the derived type.
   ///
-  unsigned getNumContainedTypes() const { return ContainedTys.size(); }
+  typedef std::vector<PATypeHandle>::size_type size_type;
+  size_type getNumContainedTypes() const { return ContainedTys.size(); }
 
   //===--------------------------------------------------------------------===//
   // Static members exported by the Type class itself.  Useful for getting