Dont iterate over global_variables. Ids are already in global_var_ids

This commit is contained in:
Polona Caserman 2017-01-16 13:26:31 +01:00
parent f47305c74d
commit 20de679813

View File

@ -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())
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;
}
case OpFunctionCall: