From e0f5627d4a9cb1b3a1361d70d40043c8c170b2af Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Fri, 25 Feb 2022 21:53:46 +0100 Subject: x64+aarch64: check for pointer to zero-bit type when lowering decl Unless the pointer is a pointer to a function, if the pointee type has zero-bits, we need to return `MCValue.none` as the `Decl` has not been lowered to memory, and therefore, any GOT reference will be wrong. --- test/behavior/basic.zig | 2 -- 1 file changed, 2 deletions(-) (limited to 'test/behavior/basic.zig') diff --git a/test/behavior/basic.zig b/test/behavior/basic.zig index dd3e85be67..d2d943940f 100644 --- a/test/behavior/basic.zig +++ b/test/behavior/basic.zig @@ -399,8 +399,6 @@ fn testTakeAddressOfParameter(f: f32) !void { test "pointer to void return type" { if (builtin.zig_backend == .stage2_c) return error.SkipZigTest; // TODO - if (builtin.zig_backend == .stage2_aarch64 and builtin.os.tag == .macos) return error.SkipZigTest; - if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag == .macos) return error.SkipZigTest; try testPointerToVoidReturnType(); } -- cgit v1.2.3