aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Thread
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2023-03-09 21:34:06 +0000
committerVeikka Tuominen <git@vexu.eu>2023-03-12 18:55:23 +0200
commitc93e0d86187cb589d6726acd36f741f3d87a96be (patch)
tree3e812c1fcd520086b45cc22cbc890fb24f432b57 /lib/std/Thread
parent948926c513befd95dc1ff90fe05329245f1c81db (diff)
downloadzig-c93e0d86187cb589d6726acd36f741f3d87a96be.tar.gz
zig-c93e0d86187cb589d6726acd36f741f3d87a96be.zip
Sema: @extern fixes
* There was an edge case where the arena could be destroyed twice on error: once from the arena itself and once from the decl destruction. * The type of the created decl was incorrect (it should have been the pointer child type), but it's not required anyway, so it's now just initialized to anyopaque (which more accurately reflects what's actually at that memory, since e.g. [*]T may correspond to nothing). * A runtime bitcast of the pointer was performed, meaning @extern didn't work at comptime. This is unnecessary: the decl_ref can just be initialized with the correct pointer type.
Diffstat (limited to 'lib/std/Thread')
0 files changed, 0 insertions, 0 deletions