File tree 3 files changed +3
-3
lines changed
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
73
73
const source_locationt &source_location () const
74
74
{
75
75
if (get_sub ().empty ())
76
- return static_cast < const source_locationt &>( get_nil_irep () );
76
+ return source_locationt::nil ( );
77
77
else
78
78
return static_cast <const source_locationt &>(
79
79
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
497
497
498
498
explicit instructiont (goto_program_instruction_typet __type)
499
499
: 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( )),
501
501
_type(__type),
502
502
guard(true_exprt())
503
503
{
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ const source_locationt &exprt::find_source_location() const
176
176
return op_l;
177
177
}
178
178
179
- return static_cast < const source_locationt &>( get_nil_irep () );
179
+ return source_locationt::nil ( );
180
180
}
181
181
182
182
template <typename T>
You can’t perform that action at this time.
0 commit comments