summaryrefslogtreecommitdiff
path: root/rust/src
diff options
context:
space:
mode:
authorGlenn Smith <glenn@vector35.com>2025-05-06 16:47:15 -0400
committerGlenn Smith <glenn@vector35.com>2025-06-11 17:37:26 -0400
commit6091002460609793463078951047220893747923 (patch)
tree4378eb62ee87b27365b44813413b2c2d839e445b /rust/src
parent3a1a81c3ddd8340432ecd2687d3a25195cc97d40 (diff)
Expose AnalysisContext::GetLiftedILFunction properly
It was already grabbing the Lifted IL through the function object, which may not be the most up to date
Diffstat (limited to 'rust/src')
-rw-r--r--rust/src/workflow.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/rust/src/workflow.rs b/rust/src/workflow.rs
index 3dcb1042..ea69d941 100644
--- a/rust/src/workflow.rs
+++ b/rust/src/workflow.rs
@@ -46,8 +46,7 @@ impl AnalysisContext {
/// [`LowLevelILMutableFunction`] used to represent Lifted Level IL
pub unsafe fn lifted_il_function(&self) -> Option<Ref<LowLevelILMutableFunction>> {
- let func = self.function();
- let result = unsafe { BNGetFunctionLiftedIL(func.handle) };
+ let result = unsafe { BNAnalysisContextGetLiftedILFunction(self.handle.as_ptr()) };
unsafe {
Some(LowLevelILMutableFunction::ref_from_raw(
NonNull::new(result)?.as_ptr(),