Skip to content

Commit d3b5dfa

Browse files
authored
Revert "swift-api-digester: initialize vector with a reasonable capacity." (#6184)
This did not resolve the test failure.
1 parent a61a56a commit d3b5dfa

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

test/api-digester/compare-dump.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: rdar://29591753
12
// RUN: rm -rf %t.mod && mkdir -p %t.mod
23
// RUN: rm -rf %t.sdk && mkdir -p %t.sdk
34
// RUN: rm -rf %t.module-cache && mkdir -p %t.module-cache

test/api-digester/source-stability.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// REQUIRES: rdar://29591753
12
// REQUIRES: OS=macosx
23
// RUN: rm -rf %S/tmp && mkdir %S/tmp && mkdir %S/tmp/module-cache && mkdir %S/tmp/dummy.sdk
34
// RUN: %api-digester -dump-sdk -module Swift -o %S/tmp/current-stdlib.json -module-cache-path %S/tmp/module-cache -sdk %S/tmp/dummy.sdk -swift-version 3

tools/swift-api-digester/swift-api-digester.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,10 @@ typedef std::map<NodePtr, NodePtr> ParentMap;
166166
typedef std::vector<NodePtr> NodeVector;
167167

168168
class SDKContext {
169-
unsigned SIZE = 1024 * 1024;
170169
llvm::StringSet<> TextData;
171170
std::vector<std::unique_ptr<SDKNode>> OwnedNodes;
172171

173172
public:
174-
SDKContext() : OwnedNodes(SIZE) {}
175173
SDKNode* own(SDKNode *Node) {
176174
assert(Node);
177175
OwnedNodes.emplace_back(Node);

0 commit comments

Comments
 (0)