Skip to content

Commit 3a6a280

Browse files
committed
Fix compilation: add virtual destructor to class Type
1 parent 776c2f5 commit 3a6a280

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bindgen/ir/types/Type.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ struct CycleNode {
2222
*/
2323
class Type : public std::enable_shared_from_this<Type> {
2424
public:
25+
26+
virtual ~Type() = default;
27+
2528
virtual std::string str(const LocationManager &locationManager) const = 0;
2629

2730
/**

0 commit comments

Comments
 (0)