From be75a9373a6d0f9e2ef35ac376a541e60d72d306 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Mon, 7 Jan 2013 15:50:19 +0100 Subject: nv50/ir: wrap assertion using typeid in #ifndef NDEBUG Note: this is a candidate for the 9.0 stable branch. --- src/gallium/drivers/nv50/codegen/nv50_ir.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/nv50/codegen/nv50_ir.cpp b/src/gallium/drivers/nv50/codegen/nv50_ir.cpp index 335e9e01e61..146dbbbac1d 100644 --- a/src/gallium/drivers/nv50/codegen/nv50_ir.cpp +++ b/src/gallium/drivers/nv50/codegen/nv50_ir.cpp @@ -715,7 +715,9 @@ Instruction::clone(ClonePolicy& pol, Instruction *i) const { if (!i) i = new_Instruction(pol.context(), op, dType); +#ifndef NDEBUG // non-conformant assert, so this is required assert(typeid(*i) == typeid(*this)); +#endif pol.set(this, i); -- cgit v1.2.3