aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-03-02 21:59:23 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-03-02 21:59:23 -0700
commit713f1138222dc40355c34c70d83b0a0805bd46c6 (patch)
treea6060a67d81b1f875e0cfb947fadec9325b37a89 /src/codegen
parent6aa1ea9c59340a1f5b7560ecd97e45928bd4cf56 (diff)
downloadzig-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