Skip to content

Commit 7e1b382

Browse files
Set function member for class identifier assignment
1 parent 531ef7e commit 7e1b382

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/goto-programs/remove_instanceof.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ void remove_instanceoft::lower_instanceof(
140140
newinst->make_assignment();
141141
newinst->code=code_assignt(newsym.symbol_expr(), object_clsid);
142142
newinst->source_location=this_inst->source_location;
143+
newinst->function=this_inst->function;
143144

144145
// Insert the check instruction after the existing one.
145146
// This will briefly be ill-formed (use before def of

0 commit comments

Comments
 (0)