Skip to content

Commit 96d572d

Browse files
author
Owen
committed
Fix wrong type for dereference expression #1
We should keep the struct tag type, not follow it and get the struct type
1 parent a504983 commit 96d572d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jbmc/src/java_bytecode/simple_method_stubbing.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void java_simple_method_stubst::create_method_stub_at(
108108
// If it's a constructor the thing we're constructing has already
109109
// been allocated by this point.
110110
if(is_constructor)
111-
to_init = dereference_exprt(to_init, expected_base);
111+
to_init = dereference_exprt(to_init);
112112

113113
java_object_factory_parameterst parameters = object_factory_parameters;
114114
if(assume_non_null)

0 commit comments

Comments
 (0)