vkd3d-shader/hlsl: Remove an unnecessary local variable in copy_propagation_get_value().

Found with -Wshadow.
This commit is contained in:
Zebediah Figura 2023-04-30 17:40:32 -05:00 committed by Alexandre Julliard
parent d1ce069ea6
commit 2d1825bb89
Notes: Alexandre Julliard 2023-11-28 00:12:56 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/494

View File

@ -1304,12 +1304,10 @@ static struct copy_propagation_value *copy_propagation_get_value(const struct co
{
struct copy_propagation_var_def *var_def = RB_ENTRY_VALUE(entry, struct copy_propagation_var_def, entry);
unsigned int component_count = hlsl_type_component_count(var->data_type);
enum copy_propagation_value_state state;
assert(component < component_count);
state = var_def->values[component].state;
switch (state)
switch (var_def->values[component].state)
{
case VALUE_STATE_STATICALLY_WRITTEN:
return &var_def->values[component];