]> git.lizzy.rs Git - rust.git/commit
vec: avoid `ptrtoint`/`inttoptr` in the iterators
authorDaniel Micay <danielmicay@gmail.com>
Tue, 6 Aug 2013 21:15:43 +0000 (17:15 -0400)
committerDaniel Micay <danielmicay@gmail.com>
Wed, 7 Aug 2013 03:41:20 +0000 (23:41 -0400)
commitf23fb19ee508515912e136c948a0242cc88a2d4e
treef83ee05e78fd9ea5560c03529c5c9860d576a061
parent8f9bbc476d9e4403bc5cd1edfe4a651bd341e811
vec: avoid `ptrtoint`/`inttoptr` in the iterators

This results in throwing away alias analysis information, because LLVM
does *not* implement reasoning about these conversions yet.

We specialize zero-size types since a `getelementptr` offset will
return us the same pointer, making it broken as a simple counter.
src/libstd/vec.rs