File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -604,13 +604,14 @@ void java_bytecode_instrument_uncaught_exceptions(
604
604
const source_locationt &source_location)
605
605
{
606
606
// check that there is no uncaught exception
607
- code_assertt assert_no_exception;
608
- assert_no_exception.assertion () = equal_exprt (
607
+ code_assertt assert_no_exception (equal_exprt (
609
608
exc_symbol.symbol_expr (),
610
- null_pointer_exprt (to_pointer_type (exc_symbol.type )));
609
+ null_pointer_exprt (to_pointer_type (exc_symbol.type ))));
610
+
611
611
source_locationt assert_location = source_location;
612
612
assert_location.set_comment (" no uncaught exception" );
613
613
assert_no_exception.add_source_location () = assert_location;
614
+
614
615
init_code.move_to_operands (assert_no_exception);
615
616
}
616
617
You can’t perform that action at this time.
0 commit comments