nv50/ir: make Graph destructor virtual
Avoid ASan new-delete-type-mismatch when Function::domTree is created as DominatorTree in Function::convertToSSA but destroyed only as base Graph in ~Function. Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
committed by
Ilia Mirkin
parent
be32a21327
commit
0140938b26
@@ -147,7 +147,7 @@ public:
|
||||
|
||||
public:
|
||||
Graph();
|
||||
~Graph(); // does *not* free the nodes (make it an option ?)
|
||||
virtual ~Graph(); // does *not* free the nodes (make it an option ?)
|
||||
|
||||
inline Node *getRoot() const { return root; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user