Skip to content

Commit d2d7736

Browse files
committed
Remove external checks of class_method_descriptor_exprt
As the expresion is now checked on construction and casting, we no longer need check for its validity in the places where it is used.
1 parent dd07600 commit d2d7736

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

jbmc/src/java_bytecode/ci_lazy_methods.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -478,12 +478,7 @@ void ci_lazy_methodst::get_virtual_method_targets(
478478
symbol_tablet &symbol_table)
479479
{
480480
const auto &call_class = called_function.class_id();
481-
INVARIANT(
482-
!call_class.empty(), "All virtual calls should be aimed at a class");
483481
const auto &method_name = called_function.mangled_method_name();
484-
INVARIANT(
485-
!method_name.empty(),
486-
"Virtual function must have a reasonable name after removing class");
487482

488483
class_hierarchyt::idst self_and_child_classes =
489484
class_hierarchy.get_children_trans(call_class);

0 commit comments

Comments
 (0)