Skip to content

Commit 4fbca91

Browse files
Robert Zakrzewskiantoyo
authored andcommitted
Fix is_same_type_as for vector type
1 parent bfb6cec commit 4fbca91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/jit/jit-recording.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,7 @@ class vector_type : public decorated_type
10011001
if (other_vec_type == NULL)
10021002
return false;
10031003
return get_num_units () == other_vec_type->get_num_units ()
1004-
&& get_element_type () == other_vec_type->get_element_type ();
1004+
&& get_element_type ()->is_same_type_as(other_vec_type->get_element_type ());
10051005
}
10061006

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

0 commit comments

Comments
 (0)