mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
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:
parent
be32a21327
commit
0140938b26
1 changed files with 1 additions and 1 deletions
|
|
@ -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; }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue