Revert "swift-api-digester: initialize vector with a reasonable capacity." (#6184)

This did not resolve the test failure.
This commit is contained in:
Xi Ge
2016-12-09 18:39:29 -08:00
committed by GitHub
parent a61a56aa27
commit d3b5dfa8d9
3 changed files with 2 additions and 2 deletions

View File

@@ -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);