diff options
author | Anders Carlsson <andersca@mac.com> | 2011-04-17 21:32:41 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-04-17 21:32:41 +0000 |
commit | 2786a81415c43cf3110d197b20987c352edbd0fe (patch) | |
tree | 5e72f0f614258934fa794aa79426e4384fb4388c /lib/CodeGen/CGRecordLayoutBuilder.cpp | |
parent | b24bac98aa90f1076f348b05b18dc34d6d144521 (diff) |
Use a SmallVector for field types in CGRecordLayoutBuilder now that llvm::StructType::get takes an ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@129667 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGRecordLayoutBuilder.cpp')
-rw-r--r-- | lib/CodeGen/CGRecordLayoutBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGRecordLayoutBuilder.cpp b/lib/CodeGen/CGRecordLayoutBuilder.cpp index 9b1adf46fe..8f070f3e1c 100644 --- a/lib/CodeGen/CGRecordLayoutBuilder.cpp +++ b/lib/CodeGen/CGRecordLayoutBuilder.cpp @@ -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: |