summaryrefslogtreecommitdiff
path: root/rust/src/medium_level_il/block.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-05-30 16:39:32 -0400
committerMason Reed <mason@vector35.com>2025-05-30 19:17:10 -0400
commit68b00cdf45551ba64c4f7217963055fc5a1a0cc4 (patch)
treef6bdef06bc02d16596bdf62870c8a1cfafe49859 /rust/src/medium_level_il/block.rs
parent77ab5e812af200b8e3bca0aac31d5fe0f638fba3 (diff)
[Rust] Express expression vs instruction index for MLIL and HLIL APIs
This was done to fix unintended behavior using an instruction or expression index in place of the other. Fixes https://github.com/Vector35/binaryninja-api/issues/6897
Diffstat (limited to 'rust/src/medium_level_il/block.rs')
-rw-r--r--rust/src/medium_level_il/block.rs2
1 files changed, 0 insertions, 2 deletions
diff --git a/rust/src/medium_level_il/block.rs b/rust/src/medium_level_il/block.rs
index 1fcd51ca..162b19b0 100644
--- a/rust/src/medium_level_il/block.rs
+++ b/rust/src/medium_level_il/block.rs
@@ -14,8 +14,6 @@ impl BlockContext for MediumLevelILBlock {
type Iter = MediumLevelILBlockIter;
fn start(&self, block: &BasicBlock<Self>) -> MediumLevelILInstruction {
- // TODO: instruction_from_index says that it is not mapped and will do the call
- // TODO: What if this IS already MAPPED!?!?!?
self.function
.instruction_from_index(block.start_index())
.unwrap()