aboutsummaryrefslogtreecommitdiff
path: root/src/Sema.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2025-01-24 22:16:50 +0000
committermlugg <mlugg@mlugg.co.uk>2025-01-24 22:33:23 +0000
commitb6726913d31f9273317ab56c4d33096aee0a588f (patch)
tree16ba058e385dc23150653bb7a1a63044f984dd77 /src/Sema.zig
parent3232e59ab99154154631eccc177b7159633acd7f (diff)
downloadzig-b6726913d31f9273317ab56c4d33096aee0a588f.tar.gz
zig-b6726913d31f9273317ab56c4d33096aee0a588f.zip
Zcu: remove `null_stack_trace`
The new simplifications to the panic handler have eliminated the need for this piece of memoized state.
Diffstat (limited to 'src/Sema.zig')
-rw-r--r--src/Sema.zig15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index 2c2841f27d..e4a2ab05b2 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -38539,21 +38539,6 @@ pub fn analyzeMemoizedState(sema: *Sema, block: *Block, simple_src: LazySrcLoc,
}
}
- if (stage == .panic) {
- // We use `getBuiltinType` because this is from an earlier stage.
- const stack_trace_ty = try sema.getBuiltinType(simple_src, .StackTrace);
- const ptr_stack_trace_ty = try pt.singleMutPtrType(stack_trace_ty);
- const opt_ptr_stack_trace_ty = try pt.optionalType(ptr_stack_trace_ty.toIntern());
- const null_stack_trace = try pt.intern(.{ .opt = .{
- .ty = opt_ptr_stack_trace_ty.toIntern(),
- .val = .none,
- } });
- if (null_stack_trace != zcu.null_stack_trace) {
- zcu.null_stack_trace = null_stack_trace;
- any_changed = true;
- }
- }
-
return any_changed;
}