MSL don't emit memory_scope after MSL 2.0.

This commit is contained in:
Bill Hollings 2018-12-11 16:28:29 -05:00
parent 52f26ee736
commit ab329a7906

View File

@ -2671,7 +2671,7 @@ void CompilerMSL::emit_barrier(uint32_t id_exe_scope, uint32_t id_mem_scope, uin
else
bar_stmt += "mem_none";
if (msl_options.is_ios() && msl_options.supports_msl_version(2))
if (msl_options.is_ios() && (msl_options.supports_msl_version(2) && !msl_options.supports_msl_version(2, 1)))
{
bar_stmt += ", ";