From 090834380cff9f2743f9c71e8e141ac5aceb747e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Wed, 7 Apr 2021 13:06:21 -0700 Subject: Type: use isPtrLikeOptional instead of isAbiPtr Thanks @Vexu --- src/type.zig | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/type.zig') diff --git a/src/type.zig b/src/type.zig index dfd021617e..a542f9a6fa 100644 --- a/src/type.zig +++ b/src/type.zig @@ -139,7 +139,7 @@ pub const Type = extern union { => false, .Pointer => is_equality_cmp or ty.isCPtr(), - .Optional => is_equality_cmp and ty.isAbiPtr(), + .Optional => is_equality_cmp and ty.isPtrLikeOptional(), }; } @@ -1619,11 +1619,6 @@ pub const Type = extern union { } } - /// Returns whether the type is represented as a pointer in the ABI. - pub fn isAbiPtr(self: Type) bool { - @panic("TODO implement this"); - } - /// Asserts that the type is an error union. pub fn errorUnionChild(self: Type) Type { return switch (self.tag()) { -- cgit v1.2.3