summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2013-01-07 15:50:19 +0100
committerChristoph Bumiller <[email protected]>2013-01-08 16:13:52 +0100
commitbe75a9373a6d0f9e2ef35ac376a541e60d72d306 (patch)
treec22b1bb5b251340dfa98d300e1bf6c59389d05cc /src/gallium/drivers
parent076f4ced8b7bbf2074cf932e653b1da6db2e2380 (diff)
nv50/ir: wrap assertion using typeid in #ifndef NDEBUG
Note: this is a candidate for the 9.0 stable branch.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nv50/codegen/nv50_ir.cpp2
1 files changed, 2 insertions, 0 deletions
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<Function>& 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<Instruction>(this, i);