Prepare struct_gep for opaque pointers
Imlement struct_gep using LLVMBuildStructGEP2 which takes an explicit type argument instead of deriving it from a pointer type.
This commit is contained in:
parent
87d713ff2b
commit
838042aa4e
6 changed files with 20 additions and 12 deletions
|
@ -1408,8 +1408,9 @@ extern "C" {
|
|||
NumIndices: c_uint,
|
||||
Name: *const c_char,
|
||||
) -> &'a Value;
|
||||
pub fn LLVMBuildStructGEP(
|
||||
pub fn LLVMBuildStructGEP2(
|
||||
B: &Builder<'a>,
|
||||
Ty: &'a Type,
|
||||
Pointer: &'a Value,
|
||||
Idx: c_uint,
|
||||
Name: *const c_char,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue