nir: Add {...} before case

Will prevent a clang regression.

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24432>
This commit is contained in:
Alyssa Rosenzweig
2023-08-01 15:00:41 -04:00
committed by Marge Bot
parent 86bcc90c0e
commit bbb9838b78

View File

@@ -336,7 +336,7 @@ try_match_deref(nir_deref_path *base_path, int *path_array_idx,
return false;
continue;
case nir_deref_type_array:
case nir_deref_type_array: {
assert(b->arr.index.is_ssa && d->arr.index.is_ssa);
const bool const_b_idx = nir_src_is_const(b->arr.index);
const bool const_d_idx = nir_src_is_const(d->arr.index);
@@ -371,6 +371,7 @@ try_match_deref(nir_deref_path *base_path, int *path_array_idx,
continue;
return false;
}
case nir_deref_type_array_wildcard:
continue;