| ... | @@ -2332,10 +2332,13 @@ pub const Object = struct { | ... | @@ -2332,10 +2332,13 @@ pub const Object = struct { |
| 2332 | // buffer is only used for int_type, `builtin` is a struct. | 2332 | // buffer is only used for int_type, `builtin` is a struct. |
| 2333 | const builtin_ty = mod.declPtr(builtin_decl).val.toType(undefined); | 2333 | const builtin_ty = mod.declPtr(builtin_decl).val.toType(undefined); |
| 2334 | const builtin_namespace = builtin_ty.getNamespace().?; | 2334 | const builtin_namespace = builtin_ty.getNamespace().?; |
| 2335 | const stack_trace_decl = builtin_namespace.decls | 2335 | const stack_trace_decl_index = builtin_namespace.decls |
| 2336 | .getKeyAdapted(stack_trace_str, Module.DeclAdapter{ .mod = mod }).?; | 2336 | .getKeyAdapted(stack_trace_str, Module.DeclAdapter{ .mod = mod }).?; |
| | 2337 | const stack_trace_decl = mod.declPtr(stack_trace_decl_index); |
| 2337 | | 2338 | |
| 2338 | return mod.declPtr(stack_trace_decl).val.toType(undefined); | 2339 | // Sema should have ensured that StackTrace was analyzed. |
| | 2340 | assert(stack_trace_decl.has_tv); |
| | 2341 | return stack_trace_decl.val.toType(undefined); |
| 2339 | } | 2342 | } |
| 2340 | }; | 2343 | }; |
| 2341 | | 2344 | |