Skip to content

Commit

Permalink
(structs) updated some details
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxXSoft committed Sep 15, 2021
1 parent b58d02a commit 686f639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ir/structs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ impl BasicBlockInner {
&self.insts
}

/// Adds the specific instruction to the current basic block.
/// Adds the specific instruction to the end of the current basic block.
///
/// # Panics
///
Expand Down Expand Up @@ -441,7 +441,7 @@ impl Drop for BasicBlockInner {
// handle all phi functions manually to prevent circular references
for inst in &self.insts {
if matches!(inst.kind(), ValueKind::Phi(_)) {
inst.inner_mut().replace_all_uses_with(None)
inst.inner_mut().replace_all_uses_with(None);
}
}
}
Expand Down

0 comments on commit 686f639

Please sign in to comment.