Skip to content

Commit 46a10b4

Browse files
committed
Object descriptor should skip typecasts
1 parent cb90b89 commit 46a10b4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/util/std_expr.cpp

+8
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,14 @@ static void build_object_descriptor_rec(
154154
typecast_exprt(to_byte_extract_expr(expr).offset(),
155155
index_type));
156156
}
157+
else if(expr.id()==ID_typecast)
158+
{
159+
const typecast_exprt &tc=to_typecast_expr(expr);
160+
161+
dest.object()=tc.op();
162+
163+
build_object_descriptor_rec(ns, tc.op(), dest);
164+
}
157165
}
158166

159167
/*******************************************************************\

0 commit comments

Comments
 (0)