File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
trunk/tools/swift-ide-test Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 594c51cc4a64b4f7eb0f28505c80ef7b13443e34
2
+ refs/heads/master: e48650cc1270740ccb6be5be9b06a45c5cdd9565
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -769,8 +769,10 @@ class SMAModelGenerator : public DeclVisitor<SMAModelGenerator> {
769
769
}
770
770
771
771
std::vector<sma::TypeName> collectProtocolConformances (NominalTypeDecl *NTD) {
772
+ const auto AllProtocols = NTD->getAllProtocols ();
772
773
std::vector<sma::TypeName> Result;
773
- for (const auto *PD : NTD->getAllProtocols ()) {
774
+ Result.reserve (AllProtocols.size ());
775
+ for (const auto *PD : AllProtocols) {
774
776
Result.emplace_back (convertToTypeName (PD->getDeclaredType ()));
775
777
}
776
778
return Result;
You can’t perform that action at this time.
0 commit comments