Skip to content

Commit c54cd9e

Browse files
committed
---
yaml --- r: 346749 b: refs/heads/master c: e48650c h: refs/heads/master i: 346747: 10f2e45
1 parent 4c0a858 commit c54cd9e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 594c51cc4a64b4f7eb0f28505c80ef7b13443e34
2+
refs/heads/master: e48650cc1270740ccb6be5be9b06a45c5cdd9565
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/tools/swift-ide-test/ModuleAPIDiff.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -769,8 +769,10 @@ class SMAModelGenerator : public DeclVisitor<SMAModelGenerator> {
769769
}
770770

771771
std::vector<sma::TypeName> collectProtocolConformances(NominalTypeDecl *NTD) {
772+
const auto AllProtocols = NTD->getAllProtocols();
772773
std::vector<sma::TypeName> Result;
773-
for (const auto *PD : NTD->getAllProtocols()) {
774+
Result.reserve(AllProtocols.size());
775+
for (const auto *PD : AllProtocols) {
774776
Result.emplace_back(convertToTypeName(PD->getDeclaredType()));
775777
}
776778
return Result;

0 commit comments

Comments
 (0)