File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ impl<'a> Iterator for Symbols<'a> {
42
42
type Item = Symbol < ' a > ;
43
43
fn next ( & mut self ) -> Option < Symbol < ' a > > {
44
44
unsafe {
45
- let name = util:: to_str ( object:: LLVMGetSymbolName ( self . iter ) as * mut i8 ) ;
45
+ let name = util:: to_str ( object:: LLVMGetSymbolName ( self . iter ) as * mut libc :: c_char ) ;
46
46
let size = object:: LLVMGetSymbolSize ( self . iter ) as usize ;
47
47
let address = object:: LLVMGetSymbolAddress ( self . iter ) as usize ;
48
48
Some ( Symbol {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ impl Value {
64
64
pub fn get_name ( & self ) -> Option < & str > {
65
65
unsafe {
66
66
let c_name = core:: LLVMGetValueName ( self . into ( ) ) ;
67
- util:: to_null_str ( c_name as * mut i8 )
67
+ util:: to_null_str ( c_name as * mut libc :: c_char )
68
68
}
69
69
}
70
70
/// Sets the name of this value
@@ -398,4 +398,4 @@ impl GetContext for Value {
398
398
fn get_context ( & self ) -> & Context {
399
399
self . get_type ( ) . get_context ( )
400
400
}
401
- }
401
+ }
You can’t perform that action at this time.
0 commit comments