about summary refs log tree commit diff
path: root/src/rt/sync/rust_thread.cpp
diff options
context:
space:
mode:
authorJed Davis <jld@panix.com>2013-10-26 12:12:53 -0700
committerJed Davis <jld@panix.com>2013-10-29 09:09:20 -0700
commit49f851c2c9e57465317938a0486495ef02ef5d81 (patch)
tree8aaf291b19ecf80fab4e0d769c5affd6882cb628 /src/rt/sync/rust_thread.cpp
parentac4644d7de7ec1528061dd4bb9639308c6018ee6 (diff)
downloadrust-49f851c2c9e57465317938a0486495ef02ef5d81.tar.gz
rust-49f851c2c9e57465317938a0486495ef02ef5d81.zip
Fix type_of for enums to not lose data in some cases when immediate.
The previous implementation, when combined with small discriminants and
immediate types, caused problems for types like `Either<u8, i16>` which
are now small enough to be immediate and can have fields intersecting
the highest-alignment variant's alignment padding (which LLVM doesn't
preserve).  So let's not do that.
Diffstat (limited to 'src/rt/sync/rust_thread.cpp')
0 files changed, 0 insertions, 0 deletions