We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2c79f51 commit e4ac6e2Copy full SHA for e4ac6e2
src/java_bytecode/select_pointer_type.cpp
@@ -51,6 +51,12 @@ bool select_pointer_typet::is_abstract_type(
51
const pointer_typet &pointer_type) const
52
{
53
const typet &pointing_to_type=ns.follow(pointer_type.subtype());
54
+
55
+ // void* pointers should be not considered abstract
56
+ // These happen in Java when initializing the exeception value.
57
+ if(pointing_to_type.id()==ID_empty)
58
+ return false;
59
60
INVARIANT(
61
pointing_to_type.id()==ID_struct,
62
"All pointers in Java should be to classes");
0 commit comments