sparse/semind: change r_member() to use r_symbol() when mem->kind == 'e'
PATCH 1/1 sparse/semind: change r_member() to use r_symbol() when mem->kind == 'e'
dissect() tries to provide as much info as possible, but from the semind's perspective it doesn't make sense to store the enumerators as members; this just complicates the searching.
Signed-off-by Oleg Nesterov <[email protected]>
--- semind.c | 3 +++ 1 file changed, 3 insertions(+)
semind.c +3 -0
@@ -746,6 +746,9 @@ static void r_member(unsigned mode, struct position *pos, struct symbol *sym, ststruct ident *ctx = &null;struct index_record rec; +if (mem && mem->kind =='e' ) +return r_symbol (mode, pos, mem); +update_stream ();if (semind_streams[pos->stream].id ==-1 )
Signature · 1 line
2.52.0