aboutsummaryrefslogtreecommitdiff
path: root/lib/std/builtin.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-09-01 12:39:47 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-09-01 12:39:47 -0700
commit4c13d020dbecbd7664b99765de33f230e98f3322 (patch)
treea4e9adc1b9ee5ca6a2db85a1e23f74847f75f878 /lib/std/builtin.zig
parent717b0e827511b55375de82258f570709c07cc59d (diff)
downloadzig-4c13d020dbecbd7664b99765de33f230e98f3322.tar.gz
zig-4c13d020dbecbd7664b99765de33f230e98f3322.zip
stage2: proper split of requireRuntimeBlock and requireFunctionBlock
* improve the ZIR generated of variable decls - utilize the same ZIR for the type and init value when possible - init value gets a result location with the variable type. no manual coercion is required. * no longer use return instructions to extract values out of comptime blocks. Instead run the analysis and then look at the corresponding analyzed instruction, relying on the comptime mechanism to report errors when something could not be comptime evaluated.
Diffstat (limited to 'lib/std/builtin.zig')
0 files changed, 0 insertions, 0 deletions