diff options
| author | Jed Davis <jld@panix.com> | 2013-10-26 12:12:53 -0700 |
|---|---|---|
| committer | Jed Davis <jld@panix.com> | 2013-10-29 09:09:20 -0700 |
| commit | 49f851c2c9e57465317938a0486495ef02ef5d81 (patch) | |
| tree | 8aaf291b19ecf80fab4e0d769c5affd6882cb628 /src/rt/sync/rust_thread.cpp | |
| parent | ac4644d7de7ec1528061dd4bb9639308c6018ee6 (diff) | |
| download | rust-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
