nir: Add braces around multi-line loop.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 17 Sep 2015 20:08:03 +0000 (13:08 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 21 Sep 2015 20:47:01 +0000 (13:47 -0700)
This was correct but not our usual style.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_normalize_cubemap_coords.c

index ca68bd7a94cc23d811af6cb8870335f1124ad52a..dd6de40c46fd529045b6353ea2aaffa00d933543 100644 (file)
@@ -98,7 +98,8 @@ normalize_cubemap_coords_impl(nir_function_impl *impl)
 void
 nir_normalize_cubemap_coords(nir_shader *shader)
 {
-   nir_foreach_overload(shader, overload)
+   nir_foreach_overload(shader, overload) {
       if (overload->impl)
          normalize_cubemap_coords_impl(overload->impl);
+   }
 }