File tree 3 files changed +6
-6
lines changed 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -2309,7 +2309,7 @@ codet java_bytecode_convert_methodt::convert_instructions(
2309
2309
if (v.is_parameter )
2310
2310
continue ;
2311
2311
// Skip anonymous variables:
2312
- if (v.symbol_expr .get_identifier ()== irep_idt ())
2312
+ if (v.symbol_expr .get_identifier (). empty ())
2313
2313
continue ;
2314
2314
auto &block=get_block_for_pcrange (
2315
2315
root,
Original file line number Diff line number Diff line change @@ -203,9 +203,9 @@ static void get_virtual_method_targets(
203
203
assert (called_function.id ()==ID_virtual_function);
204
204
205
205
const auto &call_class=called_function.get (ID_C_class);
206
- assert (call_class!= irep_idt ());
206
+ assert (!call_class. empty ());
207
207
const auto &call_basename=called_function.get (ID_component_name);
208
- assert (call_basename!= irep_idt ());
208
+ assert (!call_basename. empty ());
209
209
210
210
auto old_size=needed_methods.size ();
211
211
@@ -218,7 +218,7 @@ static void get_virtual_method_targets(
218
218
call_basename,
219
219
child_class,
220
220
symbol_table);
221
- if (child_method!= irep_idt ())
221
+ if (!child_method. empty ())
222
222
needed_methods.push_back (child_method);
223
223
}
224
224
@@ -231,7 +231,7 @@ static void get_virtual_method_targets(
231
231
call_basename,
232
232
parent_class_id,
233
233
symbol_table);
234
- if (parent_method!= irep_idt ())
234
+ if (!parent_method. empty ())
235
235
{
236
236
needed_methods.push_back (parent_method);
237
237
break ;
Original file line number Diff line number Diff line change @@ -157,7 +157,7 @@ void java_bytecode_parse_treet::methodt::output(std::ostream &out) const
157
157
158
158
for (const auto &i : instructions)
159
159
{
160
- if (i.source_location .get_line ()!= irep_idt ())
160
+ if (! i.source_location .get_line (). empty ())
161
161
out << " // " << i.source_location << ' \n ' ;
162
162
163
163
out << " " << i.address << " : " ;
You can’t perform that action at this time.
0 commit comments