Skip to content

Commit ac4706d

Browse files
author
Daniel Kroening
committed
use make_assignment(lhs, rhs)
1 parent 5fa91bf commit ac4706d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/analyses/goto_check.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,7 +1833,7 @@ void goto_checkt::goto_check(
18331833
lhs);
18341834
goto_programt::targett t =
18351835
new_code.add(goto_programt::make_assignment(
1836-
code_assignt(std::move(lhs), std::move(rhs)), i.source_location));
1836+
std::move(lhs), std::move(rhs), i.source_location));
18371837
t->code.add_source_location()=i.source_location;
18381838
}
18391839
}
@@ -1849,7 +1849,7 @@ void goto_checkt::goto_check(
18491849

18501850
// add self-assignment to get helpful counterexample output
18511851
new_code.add(
1852-
goto_programt::make_assignment(code_assignt(leak_expr, leak_expr)));
1852+
goto_programt::make_assignment(leak_expr, leak_expr));
18531853

18541854
source_locationt source_location;
18551855
source_location.set_function(function_identifier);

0 commit comments

Comments
 (0)