diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-03-02 21:59:23 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-03-02 21:59:23 -0700 |
| commit | 713f1138222dc40355c34c70d83b0a0805bd46c6 (patch) | |
| tree | a6060a67d81b1f875e0cfb947fadec9325b37a89 /src/codegen | |
| parent | 6aa1ea9c59340a1f5b7560ecd97e45928bd4cf56 (diff) | |
| download | zig-713f1138222dc40355c34c70d83b0a0805bd46c6.tar.gz zig-713f1138222dc40355c34c70d83b0a0805bd46c6.zip | |
stage2: improve orelse implementation
* Now it supports being an lvalue (see additional lines in the test
case).
* Properly handles a pointer result location (see additional lines in
the test case that assign the result of the orelse to a variable
rather than a const).
* Properly sets the result location type when possible, so that type
inference of an `orelse` operand expression knows its result type.
Diffstat (limited to 'src/codegen')
0 files changed, 0 insertions, 0 deletions
