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 @@ -78,7 +78,7 @@ class goto_checkt
78
78
79
79
protected:
80
80
const namespacet &ns;
81
- local_bitvector_analysist * local_bitvector_analysis;
81
+ std::unique_ptr< local_bitvector_analysist> local_bitvector_analysis;
82
82
goto_programt::const_targett t;
83
83
84
84
void check_rec (
@@ -1530,8 +1530,9 @@ void goto_checkt::goto_check(
1530
1530
1531
1531
bool did_something = false ;
1532
1532
1533
- local_bitvector_analysist local_bitvector_analysis_obj (goto_function);
1534
- local_bitvector_analysis=&local_bitvector_analysis_obj;
1533
+ if (enable_pointer_check)
1534
+ local_bitvector_analysis = std::unique_ptr<local_bitvector_analysist>(
1535
+ new local_bitvector_analysist (goto_function));
1535
1536
1536
1537
goto_programt &goto_program=goto_function.body ;
1537
1538
You can’t perform that action at this time.
0 commit comments