mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/hlsl: Remove an unnecessary local variable in copy_propagation_get_value().
Found with -Wshadow.
This commit is contained in:
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
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user