aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index 8501df175a..83322e8a6e 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -925,7 +925,8 @@ const StackIterator = union(enum) {
const di_gpa = getDebugInfoAllocator();
const ret_addr = di.unwindFrame(di_gpa, unwind_context) catch |err| {
const pc = unwind_context.pc;
- it.* = .{ .fp = unwind_context.getFp() };
+ const fp = unwind_context.getFp();
+ it.* = .{ .fp = fp };
return .{ .switch_to_fp = .{
.address = pc,
.err = err,