From 9939d850f0b8ccaf1ae048bcb5f788a6c3e606bf Mon Sep 17 00:00:00 2001 From: Michael Krasnitski Date: Sun, 11 Feb 2024 15:27:22 -0500 Subject: Refactor HLIL instructions Similar to MLIL. Also, reintroduce `LiftedJump` and `LiftedLabel` types. --- rust/src/hlil/block.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'rust/src/hlil/block.rs') diff --git a/rust/src/hlil/block.rs b/rust/src/hlil/block.rs index a90429a4..0bbedd18 100644 --- a/rust/src/hlil/block.rs +++ b/rust/src/hlil/block.rs @@ -21,7 +21,7 @@ impl Iterator for HighLevelILBlockIter { .map(|i| unsafe { BNGetHighLevelILIndexForInstruction(self.function.handle, i as usize) }) - .map(|i| HighLevelILInstruction::new(&self.function, i)) + .map(|i| HighLevelILInstruction::new(self.function.to_owned(), i)) } } @@ -43,7 +43,7 @@ impl BlockContext for HighLevelILBlock { let expr_idx = unsafe { BNGetHighLevelILIndexForInstruction(self.function.handle, block.raw_start() as usize) }; - HighLevelILInstruction::new(&self.function, expr_idx) + HighLevelILInstruction::new(self.function.to_owned(), expr_idx) } fn iter(&self, block: &BasicBlock) -> HighLevelILBlockIter { -- cgit v1.3.1