diff options
| author | Jed Davis <jld@panix.com> | 2012-12-30 20:30:23 -0800 |
|---|---|---|
| committer | Jed Davis <jld@panix.com> | 2013-01-11 23:42:51 -0800 |
| commit | f76e28aa1c093c59671749006e1a7ae203d66b7c (patch) | |
| tree | c731df0c8bba4ce50f16d412e9e9f9f67f635dbd /src/rt/rust_kernel.cpp | |
| parent | 452642422dda045b89cbcb2b7d011c85c5202d5d (diff) | |
| download | rust-f76e28aa1c093c59671749006e1a7ae203d66b7c.tar.gz rust-f76e28aa1c093c59671749006e1a7ae203d66b7c.zip | |
Allow consts' LLVM types to depend on their initializers.
Loosening the connection between the LLVM type and the Rust type is necessary to use non-nullary enum constructors as const initializers, because the const needs to be initialized with data of the actual type of the variant in question, which is (generally) not the same as the u8 array in the `type_of` type. Thus, referring to a const now requires casting the LLVM global to the expected pointer type instead of using it as-is.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions
