summaryrefslogtreecommitdiff
path: root/rust/src/hlil/block.rs
diff options
context:
space:
mode:
Diffstat (limited to 'rust/src/hlil/block.rs')
-rw-r--r--rust/src/hlil/block.rs4
1 files changed, 2 insertions, 2 deletions
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<Self>) -> HighLevelILBlockIter {