mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
nv50/ir: wrap assertion using typeid in #ifndef NDEBUG
Note: this is a candidate for the 9.0 stable branch.
This commit is contained in:
parent
076f4ced8b
commit
be75a9373a
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue