Skip to content

Commit 9f9b81b

Browse files
committed
RequirementMachine: Explicitly specify SmallVector size
1 parent 01a254f commit 9f9b81b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/AST/RequirementMachine/ConcreteContraction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ Optional<Type> ConcreteContraction::substTypeParameter(
237237

238238
// An unresolved DependentMemberType stores an identifier. Handle this
239239
// by performing a name lookup into the base type.
240-
SmallVector<TypeDecl *> concreteDecls;
240+
SmallVector<TypeDecl *, 2> concreteDecls;
241241
lookupConcreteNestedType(*substBaseType, memberType->getName(), concreteDecls);
242242

243243
auto *typeDecl = findBestConcreteNestedType(concreteDecls);

0 commit comments

Comments
 (0)