Skip to content

Commit d61ce94

Browse files
authored
Merge pull request #60 from zedar/fix_vector_type_comparison
Fix is_same_type_as for vector type
2 parents 196c467 + aedc025 commit d61ce94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/jit/jit-recording.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -996,7 +996,7 @@ class vector_type : public decorated_type
996996
if (other_vec_type == NULL)
997997
return false;
998998
return get_num_units () == other_vec_type->get_num_units ()
999-
&& get_element_type () == other_vec_type->get_element_type ();
999+
&& get_element_type ()->is_same_type_as(other_vec_type->get_element_type ());
10001000
}
10011001

10021002
vector_type *is_vector () final override { return this; }

0 commit comments

Comments
 (0)