Skip to content

Commit 738298f

Browse files
author
Daniel Kroening
committed
use instructiont::turn_into_skip
This is a clearer idiom.
1 parent 02ce47f commit 738298f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

jbmc/src/java_bytecode/remove_instanceof.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ bool remove_instanceoft::lower_instanceof(
211211
// GOTO programs before the target instruction without inserting into the
212212
// wrong basic block.
213213
goto_program.insert_before_swap(target);
214-
*target = goto_programt::make_skip();
214+
target->turn_into_skip();
215215
// Actually alter the now-moved instruction:
216216
++target;
217217
}

src/goto-instrument/accelerate/disjunctive_polynomial_acceleration.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -914,7 +914,7 @@ void disjunctive_polynomial_accelerationt::build_fixed()
914914
if(loop.find(t)==loop.end())
915915
{
916916
// This instruction isn't part of the loop... Just remove it.
917-
*fixedt = goto_programt::make_skip(fixedt->source_location);
917+
fixedt->turn_into_skip();
918918
continue;
919919
}
920920

src/goto-instrument/accelerate/sat_path_enumerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ void sat_path_enumeratort::build_fixed()
269269
if(loop.find(t)==loop.end())
270270
{
271271
// This instruction isn't part of the loop... Just remove it.
272-
*fixedt = goto_programt::make_skip(fixedt->source_location);
272+
fixedt->turn_into_skip();
273273
continue;
274274
}
275275

0 commit comments

Comments
 (0)