summaryrefslogtreecommitdiff
path: root/rust/src/function.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/function.rs')
-rw-r--r--rust/src/function.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/src/function.rs b/rust/src/function.rs
index 0508ca4d..0df9fcf5 100644
--- a/rust/src/function.rs
+++ b/rust/src/function.rs
@@ -427,7 +427,7 @@ impl Function {
return Err(());
}
- Ok(llil::RegularFunction::from_raw(self.arch(), llil))
+ Ok(llil::RegularFunction::ref_from_raw(self.arch(), llil))
}
}
@@ -435,7 +435,7 @@ impl Function {
&self,
) -> Option<Ref<llil::RegularFunction<CoreArchitecture>>> {
let llil = unsafe { BNGetFunctionLowLevelILIfAvailable(self.handle) };
- (!llil.is_null()).then(|| unsafe { llil::RegularFunction::from_raw(self.arch(), llil) })
+ (!llil.is_null()).then(|| unsafe { llil::RegularFunction::ref_from_raw(self.arch(), llil) })
}
pub fn lifted_il(&self) -> Result<Ref<llil::LiftedFunction<CoreArchitecture>>, ()> {
@@ -446,13 +446,13 @@ impl Function {
return Err(());
}
- Ok(llil::LiftedFunction::from_raw(self.arch(), llil))
+ Ok(llil::LiftedFunction::ref_from_raw(self.arch(), llil))
}
}
pub fn lifted_il_if_available(&self) -> Option<Ref<llil::LiftedFunction<CoreArchitecture>>> {
let llil = unsafe { BNGetFunctionLiftedILIfAvailable(self.handle) };
- (!llil.is_null()).then(|| unsafe { llil::LiftedFunction::from_raw(self.arch(), llil) })
+ (!llil.is_null()).then(|| unsafe { llil::LiftedFunction::ref_from_raw(self.arch(), llil) })
}
pub fn return_type(&self) -> Conf<Ref<Type>> {