From: Christoph Bumiller Date: Mon, 7 Jan 2013 14:50:19 +0000 (+0100) Subject: nv50/ir: wrap assertion using typeid in #ifndef NDEBUG X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be75a9373a6d0f9e2ef35ac376a541e60d72d306;p=mesa.git nv50/ir: wrap assertion using typeid in #ifndef NDEBUG Note: this is a candidate for the 9.0 stable branch. --- 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);