diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-10-17 14:50:47 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-10-17 14:55:32 -0700 |
| commit | 6534f2ef4f8161f4121326f19bc3cf89324f62c5 (patch) | |
| tree | 87fb9d6f2b082a534402080f53febf483d81e7fc /src/Compilation.zig | |
| parent | 53b87fa78a3ee2c261f3bdd6a71d5733fe17ffd5 (diff) | |
| download | zig-6534f2ef4f8161f4121326f19bc3cf89324f62c5.tar.gz zig-6534f2ef4f8161f4121326f19bc3cf89324f62c5.zip | |
stage2: implement error wrapping
* Sema: fix returned operands not coercing to the function return type
in some cases.
- When returning an error or an error union from a function with an
inferred error set, it will now populate the inferred error set.
- Implement error set coercion for the common case of inferred error
set to inferred error set, without forcing a full resolution.
* LLVM backend: update instruction lowering that handles error unions
to respect `isByRef`.
- Also implement `wrap_err_union_err`.
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions
