summaryrefslogtreecommitdiff
path: root/rust/src/hlil/block.rs
diff options
context:
space:
mode:
authorMichael Krasnitski <michael.krasnitski@gmail.com>2024-02-11 15:27:22 -0500
committerKyle Martin <krm504@nyu.edu>2024-03-18 17:46:37 -0400
commit9939d850f0b8ccaf1ae048bcb5f788a6c3e606bf (patch)
tree91b582cd51820d826efcd5312e234e56617ca7f9 /rust/src/hlil/block.rs
parent970fe84875e2d6eed918f5bdc9ff689ef37b05ce (diff)
Refactor HLIL instructions
Similar to MLIL. Also, reintroduce `LiftedJump` and `LiftedLabel` types.
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 {