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:

committed by
Marge Bot

parent
86bcc90c0e
commit
bbb9838b78
@@ -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;
|
||||
|
Reference in New Issue
Block a user