From 6091002460609793463078951047220893747923 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 6 May 2025 16:47:15 -0400 Subject: Expose AnalysisContext::GetLiftedILFunction properly It was already grabbing the Lifted IL through the function object, which may not be the most up to date --- rust/src/workflow.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'rust/src') 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> { - 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(), -- cgit v1.3.1