diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-09 01:53:54 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-09 01:53:54 +0000 |
commit | 021220c8cd2f0598b7507b37fa1bb93d51a3d9c2 (patch) | |
tree | e87cfc435beaabb3c4b04ac392a1df261cf09774 /include/llvm/ParameterAttributes.h | |
parent | 8546409d1b4579b085540d2d09dd3134f481f557 (diff) | |
download | external_llvm-021220c8cd2f0598b7507b37fa1bb93d51a3d9c2.zip external_llvm-021220c8cd2f0598b7507b37fa1bb93d51a3d9c2.tar.gz external_llvm-021220c8cd2f0598b7507b37fa1bb93d51a3d9c2.tar.bz2 |
Chris convinced me that the default size of the SmallVector (2) was too
small. Since it doesn't cost much to have 2 more (8 bytes), but not having
them would require a malloc as soon as the third one is needed. Setting
the default to 4 delays the malloc until the 5th parameter attribute.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ParameterAttributes.h')
-rw-r--r-- | include/llvm/ParameterAttributes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ParameterAttributes.h b/include/llvm/ParameterAttributes.h index 30bead7..e1c2844 100644 --- a/include/llvm/ParameterAttributes.h +++ b/include/llvm/ParameterAttributes.h @@ -156,7 +156,7 @@ class ParamAttrsList { uint16_t index; ///< Index of the parameter for which the attributes apply }; - SmallVector<ParamAttrsWithIndex,2> attrs; ///< The list of attributes + SmallVector<ParamAttrsWithIndex,4> attrs; ///< The list of attributes /// @} }; |