diff options
Diffstat (limited to 'src/compiler/nir/nir_metadata.c')
-rw-r--r-- | src/compiler/nir/nir_metadata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/nir/nir_metadata.c b/src/compiler/nir/nir_metadata.c index 61aae73221e..9e1cff5a67f 100644 --- a/src/compiler/nir/nir_metadata.c +++ b/src/compiler/nir/nir_metadata.c @@ -63,7 +63,7 @@ nir_metadata_preserve(nir_function_impl *impl, nir_metadata preserved) void nir_metadata_set_validation_flag(nir_shader *shader) { - nir_foreach_function(shader, function) { + nir_foreach_function(function, shader) { if (function->impl) { function->impl->valid_metadata |= nir_metadata_not_properly_reset; } @@ -80,7 +80,7 @@ nir_metadata_set_validation_flag(nir_shader *shader) void nir_metadata_check_validation_flag(nir_shader *shader) { - nir_foreach_function(shader, function) { + nir_foreach_function(function, shader) { if (function->impl) { assert(!(function->impl->valid_metadata & nir_metadata_not_properly_reset)); |