Skip to content

Commit

Permalink
Address comments from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
artemagvanian committed Aug 16, 2024
1 parent c378ec5 commit ff4862a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions kani-compiler/src/kani_middle/transform/kani_intrinsics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ impl IntrinsicGeneratorPass {
// Instead of injecting the instrumentation immediately, collect it into a list of
// statements and a terminator to construct a basic block and inject it at the end.
let mut statements = vec![];
let terminator;

// The first argument type.
let arg_ty = new_body.locals()[1].ty;
Expand Down Expand Up @@ -234,7 +233,7 @@ impl IntrinsicGeneratorPass {
let layout_operand =
mk_layout_operand(&mut new_body, &mut statements, &mut source, &layout);

terminator = Terminator {
let terminator = Terminator {
kind: TerminatorKind::Call {
func: Operand::Copy(Place::from(new_body.new_local(
is_ptr_initialized_instance.ty(),
Expand Down Expand Up @@ -277,7 +276,7 @@ impl IntrinsicGeneratorPass {
&mut source,
&element_layout,
);
terminator = Terminator {
let terminator = Terminator {
kind: TerminatorKind::Call {
func: Operand::Copy(Place::from(new_body.new_local(
is_ptr_initialized_instance.ty(),
Expand Down

0 comments on commit ff4862a

Please sign in to comment.