Skip to content

Commit abb78df

Browse files
author
Daniel Kroening
authored
Merge pull request #3790 from tautschnig/deprecation-implies_exprt
Construct implies_exprt in a non-deprecated way
2 parents aa0dcb9 + 7d61e4a commit abb78df

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/util/guard.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ void guardt::guard_expr(exprt &dest) const
3232
}
3333
else
3434
{
35-
implies_exprt tmp;
36-
tmp.op0()=as_expr();
37-
tmp.op1().swap(dest);
35+
implies_exprt tmp(as_expr(), dest);
3836
dest.swap(tmp);
3937
}
4038
}

0 commit comments

Comments
 (0)