diff options
author | Francisco Jerez <[email protected]> | 2012-04-14 21:23:03 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2012-04-14 21:54:01 +0200 |
commit | da28ba00d84f59650bf180769d9d9a1609eb6164 (patch) | |
tree | 333afd155882706c213b1b383f6c9ac65e10d11b /src/gallium/drivers/nv50/codegen/nv50_ir.h | |
parent | 9362d4bc0a03860ec386156cf499e855a9c2d2a5 (diff) |
nv50/ir: Make sure that several IR objects are destroyed on takedown.
Diffstat (limited to 'src/gallium/drivers/nv50/codegen/nv50_ir.h')
-rw-r--r-- | src/gallium/drivers/nv50/codegen/nv50_ir.h | 5 |
1 files changed, 4 insertions, 1 deletions
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; |