mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "swift-api-digester: initialize vector with a reasonable capacity." (#6184)
This did not resolve the test failure.
This commit is contained in:
@@ -166,12 +166,10 @@ typedef std::map<NodePtr, NodePtr> ParentMap;
|
||||
typedef std::vector<NodePtr> NodeVector;
|
||||
|
||||
class SDKContext {
|
||||
unsigned SIZE = 1024 * 1024;
|
||||
llvm::StringSet<> TextData;
|
||||
std::vector<std::unique_ptr<SDKNode>> OwnedNodes;
|
||||
|
||||
public:
|
||||
SDKContext() : OwnedNodes(SIZE) {}
|
||||
SDKNode* own(SDKNode *Node) {
|
||||
assert(Node);
|
||||
OwnedNodes.emplace_back(Node);
|
||||
|
||||
Reference in New Issue
Block a user