From da28ba00d84f59650bf180769d9d9a1609eb6164 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Sat, 14 Apr 2012 21:23:03 +0200 Subject: nv50/ir: Make sure that several IR objects are destroyed on takedown. --- src/gallium/drivers/nv50/codegen/nv50_ir.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/nv50/codegen/nv50_ir.h') diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir.h b/src/gallium/drivers/nv50/codegen/nv50_ir.h index 32511f64e88..8d86a9ce282 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir.h +++ b/src/gallium/drivers/nv50/codegen/nv50_ir.h @@ -449,6 +449,7 @@ class Value { public: Value(); + virtual ~Value() { } virtual Value *clone(Function *) const { return NULL; } @@ -496,6 +497,7 @@ class LValue : public Value public: LValue(Function *, DataFile file); LValue(Function *, LValue *); + ~LValue() { } virtual Value *clone(Function *) const; @@ -511,6 +513,7 @@ class Symbol : public Value { public: Symbol(Program *, DataFile file = FILE_MEMORY_CONST, ubyte fileIdx = 0); + ~Symbol() { } virtual Value *clone(Function *) const; @@ -543,9 +546,9 @@ public: ImmediateValue(Program *, uint32_t); ImmediateValue(Program *, float); ImmediateValue(Program *, double); - // NOTE: not added to program with ImmediateValue(const ImmediateValue *, DataType ty); + ~ImmediateValue() { }; virtual bool equals(const Value *that, bool strict) const; -- cgit v1.2.3