summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_from_ssa.c
diff options
context:
space:
mode:
authorJason Ekstrand <jason.ekstrand@intel.com>2016-04-26 20:26:42 -0700
committerJason Ekstrand <jason.ekstrand@intel.com>2016-04-28 15:54:48 -0700
commit9464d8c49813aba77285e7465b96e92a91ed327c (patch)
treee39fa6395b6e5fd1eba81fb1520cf047c91cd5f2 /src/compiler/nir/nir_from_ssa.c
parente63766fb4b54bc88756ee7e82c3ff8cec0dc5561 (diff)
downloadexternal_mesa3d-9464d8c49813aba77285e7465b96e92a91ed327c.zip
external_mesa3d-9464d8c49813aba77285e7465b96e92a91ed327c.tar.gz
external_mesa3d-9464d8c49813aba77285e7465b96e92a91ed327c.tar.bz2
nir: Switch the arguments to nir_foreach_function
This matches the "foreach x in container" pattern found in many other programming languages. Generated by the following regular expression: s/nir_foreach_function(\([^,]*\),\s*\([^,]*\))/nir_foreach_function(\2, \1)/ Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'src/compiler/nir/nir_from_ssa.c')
-rw-r--r--src/compiler/nir/nir_from_ssa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir_from_ssa.c b/src/compiler/nir/nir_from_ssa.c
index 067e66f..15e89a3 100644
--- a/src/compiler/nir/nir_from_ssa.c
+++ b/src/compiler/nir/nir_from_ssa.c
@@ -805,7 +805,7 @@ nir_convert_from_ssa_impl(nir_function_impl *impl, bool phi_webs_only)
void
nir_convert_from_ssa(nir_shader *shader, bool phi_webs_only)
{
- nir_foreach_function(shader, function) {
+ nir_foreach_function(function, shader) {
if (function->impl)
nir_convert_from_ssa_impl(function->impl, phi_webs_only);
}