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:
Stephan Bergmann 2016-06-09 17:13:20 +02:00 committed by Ilia Mirkin
parent be32a21327
commit 0140938b26

View file

@ -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; }