Skip to content

Commit

Permalink
Update kani-compiler/src/kani_middle/transform/check_uninit/uninit_vi…
Browse files Browse the repository at this point in the history
…sitor.rs

Co-authored-by: Celina G. Val <celinval@amazon.com>
  • Loading branch information
artemagvanian and celinval authored Jul 2, 2024
1 parent ca62743 commit c91496f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,7 @@ impl<'a> MirVisitor for CheckUninitVisitor<'a> {
let SourceInstruction::Statement { idx, bb } = self.current else { unreachable!() };
self.current = SourceInstruction::Statement { idx: idx + 1, bb };
}

fn visit_terminator(&mut self, term: &Terminator, location: Location) {
if !(self.skip_next || self.target.is_some()) {
self.current = SourceInstruction::Terminator { bb: self.bb };
Expand Down

0 comments on commit c91496f

Please sign in to comment.