Skip to content

Commit 7d61e4a

Browse files
committed
Construct implies_exprt in a non-deprecated way
The default constructor is deprecated.
1 parent 80cb920 commit 7d61e4a

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)