Skip to contentSkip to conversation

sparse/semind: change r_member() to use r_symbol() when mem->kind == 'e'

PATCH New Oleg Nesterov 1 participant 1 message Jan 11 Sparse checker

lore
Share & tools
lore
#0 lore raw

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.

---
 semind.c | 3 +++
 1 file changed, 3 insertions(+)
semind.c +3 -0
index e9708444..92b8f243 100644
@@ -746,6 +746,9 @@ static void r_member(unsigned mode, struct position *pos, struct symbol *sym, st
 	struct 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