Skip to content

Commit 3948798

Browse files
committed
Properly adds source location to assigns object
Signed-off-by: Felipe R. Monteiro <[email protected]>
1 parent 4fd1a8d commit 3948798

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/ansi-c/ansi_c_convert_type.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ void ansi_c_convert_typet::read_rec(const typet &type)
272272
for(auto &assignment : to_unary_expr(as_expr).op().operands())
273273
assigns.add_to_operands(std::move(assignment));
274274
}
275+
assigns.add_source_location() = as_expr.source_location();
275276
}
276277
else if(type.id() == ID_C_spec_ensures)
277278
{

0 commit comments

Comments
 (0)