Skip to content

Commit 5fbd9b4

Browse files
authored
Merge pull request #41938 from slavapestov/rqm-linux-compile-fix
RequirementMachine: Explicitly specify SmallVector size
2 parents bb29c35 + 9f9b81b commit 5fbd9b4

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)