diff --git a/spirv_msl.cpp b/spirv_msl.cpp index d3c388d1..f4b28df1 100644 --- a/spirv_msl.cpp +++ b/spirv_msl.cpp @@ -9863,7 +9863,7 @@ uint32_t CompilerMSL::get_physical_tess_level_array_size(spv::BuiltIn builtin) c bool CompilerMSL::maybe_emit_array_assignment(uint32_t id_lhs, uint32_t id_rhs) { // We only care about assignments of an entire array - auto &type = expression_type(id_rhs); + auto &type = expression_type(id_lhs); if (!type_is_top_level_array(get_pointee_type(type))) return false;