mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-24 20:20:31 +01:00
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:
parent
86bcc90c0e
commit
bbb9838b78
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue