]> granicus.if.org Git - clang/commitdiff
Use a SmallVector for field types in CGRecordLayoutBuilder now that llvm::StructType...
authorAnders Carlsson <andersca@mac.com>
Sun, 17 Apr 2011 21:32:41 +0000 (21:32 +0000)
committerAnders Carlsson <andersca@mac.com>
Sun, 17 Apr 2011 21:32:41 +0000 (21:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129667 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGRecordLayoutBuilder.cpp

index 9b1adf46fe385cdfb13c605a3d9b742b9c82a992..8f070f3e1c4bb8537a815e0e7a1492f7f1881e05 100644 (file)
@@ -34,7 +34,7 @@ class CGRecordLayoutBuilder {
 public:
   /// FieldTypes - Holds the LLVM types that the struct is created from.
   /// 
-  std::vector<const llvm::Type *> FieldTypes;
+  llvm::SmallVector<const llvm::Type *, 16> FieldTypes;
 
   /// BaseSubobjectType - Holds the LLVM type for the non-virtual part
   /// of the struct. For example, consider: