diff options
Diffstat (limited to 'include/llvm/CodeGen/InstrForest.h')
-rw-r--r-- | include/llvm/CodeGen/InstrForest.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/InstrForest.h b/include/llvm/CodeGen/InstrForest.h index ef5e2f9a06..86b59a6d4f 100644 --- a/include/llvm/CodeGen/InstrForest.h +++ b/include/llvm/CodeGen/InstrForest.h @@ -136,7 +136,10 @@ public: LeftChild = RightChild = Parent = 0; opLabel = InvalidOp; } - virtual ~InstrTreeNode() {} + virtual ~InstrTreeNode() { + delete LeftChild; + delete RightChild; + } InstrTreeNodeType getNodeType () const { return treeNodeType; } |