diff options
| author | Björn Steinbrink <bsteinbr@gmail.com> | 2015-02-17 10:43:27 +0100 |
|---|---|---|
| committer | Björn Steinbrink <bsteinbr@gmail.com> | 2015-02-17 10:43:27 +0100 |
| commit | 0fe880bdb788032100b9cd1633770b56393784f6 (patch) | |
| tree | e9912c2bf39ac70e0ec750c12f9af8bc66d75850 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | f1bb6c2f46f08c1d7b6d695f5b3cf93142cb8860 (diff) | |
| download | rust-0fe880bdb788032100b9cd1633770b56393784f6.tar.gz rust-0fe880bdb788032100b9cd1633770b56393784f6.zip | |
Use the right array type in trans_slice_vec
In trans_slice_vec we currently use arrayalloca, which gives us a pointer to the element type with enough memory allocated for the requested number of elements. This works, but everywhere else we use the [n x T] type for fixed size arrays and so we have to bitcast the pointer here. Let's directly use the proper type for the allocation and remove some code duplication along the way.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
