Prepare gep for opaque pointers
Implement gep using LLVMBuildGEP2 which takes an explicit type argument instead of deriving it from a pointer type.
This commit is contained in:
parent
838042aa4e
commit
4013e094f5
6 changed files with 13 additions and 9 deletions
|
@ -1394,8 +1394,9 @@ extern "C" {
|
|||
|
||||
pub fn LLVMBuildStore(B: &Builder<'a>, Val: &'a Value, Ptr: &'a Value) -> &'a Value;
|
||||
|
||||
pub fn LLVMBuildGEP(
|
||||
pub fn LLVMBuildGEP2(
|
||||
B: &Builder<'a>,
|
||||
Ty: &'a Type,
|
||||
Pointer: &'a Value,
|
||||
Indices: *const &'a Value,
|
||||
NumIndices: c_uint,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue