about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorklutzy <klutzytheklutzy@gmail.com>2014-05-10 17:30:55 +0900
committerAlex Crichton <alex@alexcrichton.com>2014-05-13 17:24:08 -0700
commit9f7caed2024268f6de16f99b6696d191f3ca3228 (patch)
tree19345dd5d3980348cc53e87b7f2a06af0f4ed768 /src/rustllvm/ExecutionEngineWrapper.cpp
parent6878039c122211f227d6c42b7f08282629ceb6c4 (diff)
downloadrust-9f7caed2024268f6de16f99b6696d191f3ca3228.tar.gz
rust-9f7caed2024268f6de16f99b6696d191f3ca3228.zip
rustllvm: Add LLVMRustArrayType
LLVM internally uses `uint64_t` for array size, but the corresponding
C API (`LLVMArrayType`) uses `unsigned int` so ths value is truncated.
Therefore rustc generates wrong type for fixed-sized large vector e.g.
`[0 x i8]` for `[0u8, ..(1 << 32)]`.

This patch adds `LLVMRustArrayType` function for `uint64_t` support.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions