Skip to content

Commit f869882

Browse files
TGWDBNlightNFotis
authored andcommitted
Fix Windows error by changing scope of namespace
This moves a dummy namespace needed for expr2c to be created as the argument to the call.
1 parent 3514772 commit f869882

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/goto-instrument/cover_instrument_assume.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ void cover_assume_instrumentert::instrument(
2121
const cover_blocks_baset &,
2222
const assertion_factoryt &make_assertion) const
2323
{
24-
namespacet ns{symbol_tablet()};
2524
if(i_it->is_assume())
2625
{
2726
const auto location = i_it->source_location;
28-
const auto assume_condition = expr2c(i_it->get_condition(), ns);
27+
const auto assume_condition =
28+
expr2c(i_it->get_condition(), namespacet{symbol_tablet()});
2929
const auto comment_before =
3030
"assert(false) before assume(" + assume_condition + ")";
3131
const auto comment_after =

0 commit comments

Comments
 (0)