From: Stephan Bergmann Date: Thu, 9 Jun 2016 15:13:20 +0000 (+0200) Subject: nv50/ir: make Graph destructor virtual X-Git-Tag: upstream/17.1.0~8753 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0140938b26c9585fb432a4391ddef2f82b91a57d;p=platform%2Fupstream%2Fmesa.git 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 --- diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h b/src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h index b0981ff..115f20e 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; }