Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 2133007

Browse files
authored
Merge pull request #154 from mingzhe09088/fix-destructor
Fix compilation issue: has virtual functions but non-virtual destructor
2 parents 8c94829 + 82b6208 commit 2133007

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/tc/lang/tree.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ struct Tree : std::enable_shared_from_this<Tree> {
8989
}
9090
}
9191
int kind_;
92+
virtual ~Tree() {}
9293
};
9394

9495
struct String : public Tree {

0 commit comments

Comments
 (0)