| ... | @@ -139,7 +139,7 @@ pub const Type = extern union { | ... | @@ -139,7 +139,7 @@ pub const Type = extern union { |
| 139 | => false, | 139 | => false, |
| 140 | | 140 | |
| 141 | .Pointer => is_equality_cmp or ty.isCPtr(), | 141 | .Pointer => is_equality_cmp or ty.isCPtr(), |
| 142 | .Optional => is_equality_cmp and ty.isAbiPtr(), | 142 | .Optional => is_equality_cmp and ty.isPtrLikeOptional(), |
| 143 | }; | 143 | }; |
| 144 | } | 144 | } |
| 145 | | 145 | |
| ... | @@ -1619,11 +1619,6 @@ pub const Type = extern union { | ... | @@ -1619,11 +1619,6 @@ pub const Type = extern union { |
| 1619 | } | 1619 | } |
| 1620 | } | 1620 | } |
| 1621 | | 1621 | |
| 1622 | /// Returns whether the type is represented as a pointer in the ABI. | | |
| 1623 | pub fn isAbiPtr(self: Type) bool { | | |
| 1624 | @panic("TODO implement this"); | | |
| 1625 | } | | |
| 1626 | | | |
| 1627 | /// Asserts that the type is an error union. | 1622 | /// Asserts that the type is an error union. |
| 1628 | pub fn errorUnionChild(self: Type) Type { | 1623 | pub fn errorUnionChild(self: Type) Type { |
| 1629 | return switch (self.tag()) { | 1624 | return switch (self.tag()) { |