From 631f28123beca903701b3140031ee0b9d06511e5 Mon Sep 17 00:00:00 2001 From: Truman Kilen Date: Thu, 4 Dec 2025 12:19:40 -0600 Subject: Pass arch to finalized LowLevelILFunction (#7729) Co-authored-by: Mason Reed --- rust/src/low_level_il/function.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rust/src/low_level_il') diff --git a/rust/src/low_level_il/function.rs b/rust/src/low_level_il/function.rs index b473b64d..15a83c19 100644 --- a/rust/src/low_level_il/function.rs +++ b/rust/src/low_level_il/function.rs @@ -254,7 +254,7 @@ impl Ref> { unsafe { BNFinalizeLowLevelILFunction(self.handle); // Now that we have finalized return the function as is so the caller can reference the "finalized function". - LowLevelILFunction::from_raw(self.handle).to_owned() + LowLevelILFunction::from_raw_with_arch(self.handle, self.arch).to_owned() } } } -- cgit v1.3.1