compiler/glsl: Fix warning about unused function
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 23 Aug 2019 14:57:13 +0000 (07:57 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 23 Aug 2019 20:25:27 +0000 (13:25 -0700)
commit0661480029f1f9be9c542893285d9fe68f0f0115
treec8361e3fcfc87daa0662e639c2e8fc60fbf57ce1
parenteac8a3b9af15d8264e104fe31471e3d1f13c6930
compiler/glsl: Fix warning about unused function

The helper check_node_type() is only used when DEBUG is set (in the
function below), but ASSERTED macro uses NDEBUG.  So just guard the
helper with #ifdef.  If we see more such cases we might consider a
ASSERTED-like macro for the DEBUG case.

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/glsl/ir_validate.cpp