llvm.org GIT mirror llvm / 42730ce
Fix the build breakage introduced by r154131. The empty 1-argument operator delete is for the benefit of the destructor. A couple of spot checks of running yaml-bench under valgrind against a few of the files under test/YAMLParser did not reveal any leaks introduced by this change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154137 91177308-0d34-0410-b5e6-96231b3b80d8 Kaelyn Uhrain 8 years ago
1 changed file(s) with 3 addition(s) and 19 deletion(s). Raw diff Collapse all Expand all
148148 OwningPtr &Doc;
149149 SMRange SourceRange;
150150
151 virtual ~Node();
151 void operator delete(void *) throw() {}
152
153 virtual ~Node() {}
152154
153155 private:
154156 unsigned int TypeID;
167169 static inline bool classof(const Node *N) {
168170 return N->getType() == NK_Null;
169171 }
170
171 protected:
172 virtual ~NullNode();
173172 };
174173
175174 /// @brief A scalar node is an opaque datum that can be presented as a
204203 return N->getType() == NK_Scalar;
205204 }
206205
207 protected:
208 virtual ~ScalarNode();
209
210206 private:
211207 StringRef Value;
212208
253249 static inline bool classof(const Node *N) {
254250 return N->getType() == NK_KeyValue;
255251 }
256
257 protected:
258 virtual ~KeyValueNode();
259252
260253 private:
261254 Node *Key;
372365 static inline bool classof(const Node *N) {
373366 return N->getType() == NK_Mapping;
374367 }
375
376 protected:
377 virtual ~MappingNode();
378368
379369 private:
380370 MappingType Type;
439429 return N->getType() == NK_Sequence;
440430 }
441431
442 protected:
443 virtual ~SequenceNode();
444
445432 private:
446433 SequenceType SeqType;
447434 bool IsAtBeginning;
466453 static inline bool classof(const Node *N) {
467454 return N->getType() == NK_Alias;
468455 }
469
470 protected:
471 virtual ~AliasNode();
472456
473457 private:
474458 StringRef Name;