We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 39dfd49 + 2a9afdb commit f51369fCopy full SHA for f51369f
clang/include/clang/Sema/ParsedAttr.h
@@ -694,7 +694,7 @@ class AttributePool {
694
friend class AttributeFactory;
695
friend class ParsedAttributes;
696
AttributeFactory &Factory;
697
- llvm::SmallVector<ParsedAttr *> Attrs;
+ llvm::SmallVector<ParsedAttr *, 2> Attrs;
698
699
void *allocate(size_t size) {
700
return Factory.allocate(size);
@@ -824,7 +824,7 @@ class AttributePool {
824
825
class ParsedAttributesView {
826
friend class AttributePool;
827
- using VecTy = llvm::SmallVector<ParsedAttr *>;
+ using VecTy = llvm::SmallVector<ParsedAttr *, 2>;
828
using SizeType = decltype(std::declval<VecTy>().size());
829
830
public:
0 commit comments