diff options
author | Eric Engestrom <[email protected]> | 2017-11-23 13:16:43 +0000 |
---|---|---|
committer | Eric Engestrom <[email protected]> | 2017-11-28 10:54:38 +0000 |
commit | 7b85b9b8773b119360a31b66b321ae560a77cb6d (patch) | |
tree | 6f1b3519d8219fe7256e20bd4bc7ae321378fb13 /src/compiler/nir/nir_metadata.c | |
parent | bb46111c01479d831932eb63f69da5ccda29f6fc (diff) |
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 <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir_metadata.c')
-rw-r--r-- | src/compiler/nir/nir_metadata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_metadata.c b/src/compiler/nir/nir_metadata.c index f71cf432b70..e681ba34f75 100644 --- a/src/compiler/nir/nir_metadata.c +++ b/src/compiler/nir/nir_metadata.c @@ -59,7 +59,7 @@ nir_metadata_preserve(nir_function_impl *impl, nir_metadata preserved) impl->valid_metadata &= preserved; } -#ifdef DEBUG +#ifndef NDEBUG /** * Make sure passes properly invalidate metadata (part 1). * |