aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-10-24 02:14:55 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-10-27 00:14:56 -0400
commitf1072d0d9fba397b3920015fd854414868e6ea17 (patch)
treea13926e0dff5a5e9a69ec90e5d64d4ea60b2a10a /std
parent66636381957f214f1acc22dcea01cb4cd1032649 (diff)
downloadzig-f1072d0d9fba397b3920015fd854414868e6ea17.tar.gz
zig-f1072d0d9fba397b3920015fd854414868e6ea17.zip
use llvm named structs for const values when possible
normally we want to use llvm types for constants. but union constants (which are found inside enums) when they are initialized with the non-most-aligned-member must be unnamed structs. these bubble up to all aggregate types. if a constant of an aggregate type contains, recursively, a union constant with a non-most-aligned-member initialized, the aggregate typed constant must be unnamed too. this fixes some of the asserts that were coming in from llvm master branch.
Diffstat (limited to 'std')
0 files changed, 0 insertions, 0 deletions