diff options
| author | Jed Davis <jld@panix.com> | 2013-02-08 01:52:55 -0800 |
|---|---|---|
| committer | Jed Davis <jld@panix.com> | 2013-02-08 01:52:55 -0800 |
| commit | 9318babf6cf5c2d053d78dfb788575905226215e (patch) | |
| tree | a8b72355b8005d6c2401ca0a459f4e4583ebf336 /src/rt/rust_kernel.cpp | |
| parent | dd7a81d025802021d49e9a69016a890f421d1833 (diff) | |
| download | rust-9318babf6cf5c2d053d78dfb788575905226215e.tar.gz rust-9318babf6cf5c2d053d78dfb788575905226215e.zip | |
Fix const array index limit calculation.
The number of operands of the LLVM node initializing the array underlying a const vector isn't always the array length -- if the array is of a sufficiently primitive type and all the elements' values are known (or something like that), LLVM uses a specialized Constant subclass that stores the data packed, and thus has no operands. Oops. But, because llsize_of now gives us a ConstantInt, we can just fix mozilla/rust#3169 and this all goes away.
Diffstat (limited to 'src/rt/rust_kernel.cpp')
0 files changed, 0 insertions, 0 deletions
