From a7221ef4e902e63e72524559a067afcf6c1dfd17 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 6 May 2021 22:30:44 -0700 Subject: Sema: implement `@typeInfo` for functions The goal is to get start code to be able to inspect the calling convention of `main` in order to determine whether to export a main for libc to call, or to allow the root source file to do it. --- src/type.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/type.zig') diff --git a/src/type.zig b/src/type.zig index bf4b3f7b64..f492eeb3ec 100644 --- a/src/type.zig +++ b/src/type.zig @@ -1214,7 +1214,7 @@ pub const Type = extern union { if (ptr_info.@"align" != 0) { return ptr_info.@"align"; } else { - return ptr_info.pointee_type.abiAlignment(); + return ptr_info.pointee_type.abiAlignment(target); } }, -- cgit v1.2.3