diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-05-06 22:30:44 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-05-06 22:30:44 -0700 |
| commit | a7221ef4e902e63e72524559a067afcf6c1dfd17 (patch) | |
| tree | e3cbbbd7bd87409c8da573ecefa7174939ed8020 /src/type.zig | |
| parent | 3acd98fa3423d67cdce7118bc6abe736309e71df (diff) | |
| download | zig-a7221ef4e902e63e72524559a067afcf6c1dfd17.tar.gz zig-a7221ef4e902e63e72524559a067afcf6c1dfd17.zip | |
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.
Diffstat (limited to 'src/type.zig')
| -rw-r--r-- | src/type.zig | 2 |
1 files changed, 1 insertions, 1 deletions
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); } }, |
