| author | |
| committer | |
| log | e369752430a1b3a50e57e11b9f0682d026c62feb |
| tree | 7538801877166bc4dddf9fbe7deab9ec54f868e3 |
| parent | 53a5aee3b3684a03c91236702c9304dce21279e2 |
3 files changed, 3 insertions(+), 5 deletions(-)
src/Module.zig+1-1| ... | ... | @@ -4839,7 +4839,7 @@ pub fn analyzeFnBody(mod: *Module, func: *Fn, arena: Allocator) SemaError!Air { |
| 4839 | 4839 | }; |
| 4840 | 4840 | defer sema.deinit(); |
| 4841 | 4841 | |
| 4842 | // reset in case case calls to errorable functions are removed. | |
| 4842 | // reset in case calls to errorable functions are removed. | |
| 4843 | 4843 | func.calls_or_awaits_errorable_fn = false; |
| 4844 | 4844 | |
| 4845 | 4845 | // First few indexes of extra are reserved and set at the end. |
src/Sema.zig+2-1| ... | ... | @@ -12658,7 +12658,8 @@ fn analyzeRet( |
| 12658 | 12658 | const backend_supports_error_return_tracing = |
| 12659 | 12659 | sema.mod.comp.bin_file.options.use_llvm; |
| 12660 | 12660 | |
| 12661 | if (sema.fn_ret_ty.isError() and sema.mod.comp.bin_file.options.error_return_tracing and | |
| 12661 | if ((sema.fn_ret_ty.zigTypeTag() == .ErrorSet or sema.typeOf(uncasted_operand).zigTypeTag() == .ErrorUnion) and | |
| 12662 | sema.mod.comp.bin_file.options.error_return_tracing and | |
| 12662 | 12663 | backend_supports_error_return_tracing) |
| 12663 | 12664 | { |
| 12664 | 12665 | const return_err_fn = try sema.getBuiltin(block, src, "returnError"); |
src/codegen/llvm.zig-3| ... | ... | @@ -698,9 +698,6 @@ pub const Object = struct { |
| 698 | 698 | |
| 699 | 699 | const lexical_block = dib.createLexicalBlock(subprogram.toScope(), di_file.?, line_number, 1); |
| 700 | 700 | di_scope = lexical_block.toScope(); |
| 701 | ||
| 702 | // Setup a debug location in case there is a call to `returnError` before a `.dbg_stmt`. | |
| 703 | builder.setCurrentDebugLocation(line_number + func.lbrace_line, func.lbrace_column, di_scope.?, null); | |
| 704 | 701 | } |
| 705 | 702 | |
| 706 | 703 | var fg: FuncGen = .{ |