File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ class cpp_namet:public irept
7373 const source_locationt &source_location () const
7474 {
7575 if (get_sub ().empty ())
76- return static_cast < const source_locationt &>( get_nil_irep () );
76+ return source_locationt::nil ( );
7777 else
7878 return static_cast <const source_locationt &>(
7979 get_sub ().front ().find (ID_C_source_location));
Original file line number Diff line number Diff line change @@ -497,7 +497,7 @@ class goto_programt
497497
498498 explicit instructiont (goto_program_instruction_typet __type)
499499 : code(static_cast <const codet &>(get_nil_irep())),
500- _source_location(static_cast < const source_locationt &>(get_nil_irep() )),
500+ _source_location(source_locationt::nil( )),
501501 _type(__type),
502502 guard(true_exprt())
503503 {
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ const source_locationt &exprt::find_source_location() const
176176 return op_l;
177177 }
178178
179- return static_cast < const source_locationt &>( get_nil_irep () );
179+ return source_locationt::nil ( );
180180}
181181
182182template <typename T>
You can’t perform that action at this time.
0 commit comments