summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorStephan Bergmann <[email protected]>2016-06-09 17:13:20 +0200
committerIlia Mirkin <[email protected]>2016-06-13 22:55:11 -0400
commit0140938b26c9585fb432a4391ddef2f82b91a57d (patch)
treedc3928e50ededf1e119e4a4b0142b810fe4f5b77 /src/gallium/drivers
parentbe32a2132785fbc119f17e62070e007ee7d17af7 (diff)
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 <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h b/src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h
index b0981ff6943..115f20e5e99 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h
@@ -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; }