Skip to content

Commit a6a0bec

Browse files
committed
Remove meaningless precondition in object factory
The id() of struct_typets is always ID_struct.
1 parent f05a06c commit a6a0bec

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

jbmc/src/java_bytecode/java_object_factory.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,6 @@ void java_object_factoryt::gen_nondet_struct_init(
763763
{
764764
const namespacet ns(symbol_table);
765765
PRECONDITION(ns.follow(expr.type()).id()==ID_struct);
766-
PRECONDITION(struct_type.id()==ID_struct);
767766

768767
typedef struct_typet::componentst componentst;
769768
const irep_idt &struct_tag=struct_type.get_tag();

0 commit comments

Comments
 (0)