File tree 1 file changed +4
-13
lines changed 1 file changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -723,20 +723,11 @@ bool java_bytecode_languaget::typecheck(
723
723
// Now add synthetic classes for every invokedynamic instruction found (it
724
724
// makes this easier that all interface types and their methods have been
725
725
// created above):
726
+ for (const auto &id_and_symbol : symbol_table)
726
727
{
727
- std::vector<irep_idt> function_symbols;
728
-
729
- for (const auto &id_and_symbol : symbol_table)
730
- {
731
- if (id_and_symbol.second .type .id () != ID_code)
732
- continue ;
733
- auto cmb = method_bytecode.get (id_and_symbol.first );
734
- if (!cmb)
735
- continue ;
736
- function_symbols.push_back (id_and_symbol.first );
737
- }
738
-
739
- for (const auto &id : function_symbols)
728
+ const auto &id = id_and_symbol.first ;
729
+ const auto &symbol = id_and_symbol.second ;
730
+ if (symbol.type .id () == ID_code && method_bytecode.get (id))
740
731
{
741
732
create_invokedynamic_synthetic_classes (
742
733
id,
You can’t perform that action at this time.
0 commit comments