diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-09-24 15:19:48 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-24 15:19:48 -0700 |
| commit | df5f0517b33b5f7bc2a508cf6a0ee62246f02d21 (patch) | |
| tree | 64d664b74afd6d100be328b7225b87753bf62fd7 /lib/std/debug.zig | |
| parent | a9f25c7d642ec0ed047ae9be6ad87d102f3f75c8 (diff) | |
| parent | 9ff872c9829c20cb16d233534248c5cf371a8bd9 (diff) | |
| download | zig-df5f0517b33b5f7bc2a508cf6a0ee62246f02d21.tar.gz zig-df5f0517b33b5f7bc2a508cf6a0ee62246f02d21.zip | |
Merge pull request #17205 from mlugg/rls-ref
compiler: preserve result type information through address-of operator
Diffstat (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 6de21ddd1b..38a4631711 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -514,7 +514,12 @@ pub const StackIterator = struct { return StackIterator{ .first_address = first_address, - .fp = fp orelse @frameAddress(), + // TODO: this is a workaround for #16876 + //.fp = fp orelse @frameAddress(), + .fp = fp orelse blk: { + const fa = @frameAddress(); + break :blk fa; + }, }; } |
