File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 22
22
#include < util/find_symbols.h>
23
23
#include < util/guard.h>
24
24
#include < util/ieee_float.h>
25
+ #include < util/make_unique.h>
25
26
#include < util/options.h>
26
27
#include < util/pointer_offset_size.h>
27
28
#include < util/pointer_predicates.h>
@@ -78,7 +79,7 @@ class goto_checkt
78
79
79
80
protected:
80
81
const namespacet &ns;
81
- local_bitvector_analysist * local_bitvector_analysis;
82
+ std::unique_ptr< local_bitvector_analysist> local_bitvector_analysis;
82
83
goto_programt::const_targett t;
83
84
84
85
void check_rec (
@@ -1530,8 +1531,9 @@ void goto_checkt::goto_check(
1530
1531
1531
1532
bool did_something = false ;
1532
1533
1533
- local_bitvector_analysist local_bitvector_analysis_obj (goto_function);
1534
- local_bitvector_analysis=&local_bitvector_analysis_obj;
1534
+ if (enable_pointer_check)
1535
+ local_bitvector_analysis =
1536
+ util_make_unique<local_bitvector_analysist>(goto_function);
1535
1537
1536
1538
goto_programt &goto_program=goto_function.body ;
1537
1539
You can’t perform that action at this time.
0 commit comments