compiler: use NDEBUG to guard asserts
authorEric Engestrom <eric.engestrom@imgtec.com>
Thu, 23 Nov 2017 13:16:43 +0000 (13:16 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Tue, 28 Nov 2017 10:54:38 +0000 (10:54 +0000)
commit7b85b9b8773b119360a31b66b321ae560a77cb6d
tree6f1b3519d8219fe7256e20bd4bc7ae321378fb13
parentbb46111c01479d831932eb63f69da5ccda29f6fc
compiler: use NDEBUG to guard asserts

nir_validate.c's #endif already had the correct NDEBUG comment

Fixes: dcb1acdea00a8f2c29777 "nir/validate: Only build in debug mode"
Fixes: 9ff71b649b4b3808a9e17 "i965/nir: Validate that NIR passes call nir_metadata_preserve()"
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_metadata.c
src/compiler/nir/nir_validate.c