Dont iterate over global_variables. Ids are already in global_var_ids
This commit is contained in:
parent
f47305c74d
commit
20de679813
@ -217,9 +217,6 @@ void CompilerMSL::extract_global_variables_from_function(uint32_t func_id, std::
|
|||||||
if (global_var_ids.find(base_id) != global_var_ids.end())
|
if (global_var_ids.find(base_id) != global_var_ids.end())
|
||||||
added_arg_ids.insert(base_id);
|
added_arg_ids.insert(base_id);
|
||||||
|
|
||||||
if (std::find(global_variables.begin(), global_variables.end(), base_id) != global_variables.end())
|
|
||||||
added_arg_ids.insert(base_id);
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case OpFunctionCall:
|
case OpFunctionCall:
|
||||||
|
Loading…
Reference in New Issue
Block a user