Module: Mesa Branch: master Commit: 0140938b26c9585fb432a4391ddef2f82b91a57d URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0140938b26c9585fb432a4391ddef2f82b91a57d
Author: Stephan Bergmann <stephan.bergmann.second...@googlemail.com> Date: Thu Jun 9 17:13:20 2016 +0200 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 <imir...@alum.mit.edu> --- src/gallium/drivers/nouveau/codegen/nv50_ir_graph.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-commit