File tree Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Expand file tree Collapse file tree 1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -1257,17 +1257,14 @@ void java_bytecode_parsert::rmethod_attribute(methodt &method)
1257
1257
}
1258
1258
1259
1259
// line number of method (the first line number available)
1260
- if (!method.instructions .empty ())
1261
- {
1262
- const auto it = std::find_if (
1263
- method.instructions .begin (),
1264
- method.instructions .end (),
1265
- [&](const instructiont &instruction) {
1266
- return !instruction.source_location .get_line ().empty ();
1267
- });
1268
- if (it != method.instructions .end ())
1269
- method.source_location .set_line (it->source_location .get_line ());
1270
- }
1260
+ const auto it = std::find_if (
1261
+ method.instructions .begin (),
1262
+ method.instructions .end (),
1263
+ [&](const instructiont &instruction) {
1264
+ return !instruction.source_location .get_line ().empty ();
1265
+ });
1266
+ if (it != method.instructions .end ())
1267
+ method.source_location .set_line (it->source_location .get_line ());
1271
1268
1272
1269
// method name
1273
1270
method.source_location .set_function (
You can’t perform that action at this time.
0 commit comments