summaryrefslogtreecommitdiff
path: root/rust/src/mlil/block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/mlil/block.rs')
-rw-r--r--rust/src/mlil/block.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/src/mlil/block.rs b/rust/src/mlil/block.rs
index 734d6512..015c7ba4 100644
--- a/rust/src/mlil/block.rs
+++ b/rust/src/mlil/block.rs
@@ -21,7 +21,7 @@ impl Iterator for MediumLevelILBlockIter {
.map(|i| unsafe {
BNGetMediumLevelILIndexForInstruction(self.function.handle, i as usize)
})
- .map(|i| MediumLevelILInstruction::new(&self.function, i))
+ .map(|i| MediumLevelILInstruction::new(self.function.to_owned(), i))
}
}
@@ -43,7 +43,7 @@ impl BlockContext for MediumLevelILBlock {
let expr_idx = unsafe {
BNGetMediumLevelILIndexForInstruction(self.function.handle, block.raw_start() as usize)
};
- MediumLevelILInstruction::new(&self.function, expr_idx)
+ MediumLevelILInstruction::new(self.function.to_owned(), expr_idx)
}
fn iter(&self, block: &BasicBlock<Self>) -> MediumLevelILBlockIter {