We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35ebeb0 commit a2fc5c8Copy full SHA for a2fc5c8
src/engine.rs
@@ -76,7 +76,7 @@ pub trait ExecutionEngine<'a>:'a + Sized + DisposeRef where LLVMExecutionEngineR
76
/// type of the global value at this point.
77
unsafe fn find_global<T>(&'a self, name: &str) -> Option<&'a T> {
78
util::with_cstr(name, |ptr|
79
- mem::transmute(engine::LLVMGetGlobalValueAddress(self.into(), ptr))
+ mem::transmute(engine::LLVMGetGlobalValueAddress(self.into(), ptr) as usize)
80
)
81
}
82
0 commit comments