ports/devel/dwarves/files/patch-prefcnt.c
Conrad Meyer 81dd28f0c5 Update devel/dwarves to git head, b52386d0
The last release, 1.10, is four years old.  The git tree since fixes numerous
bugs present in 1.10.

Reviewed by:	portlint
Sponsored by:	EMC / Isilon Storage Division
2016-07-14 06:34:55 +00:00

16 lines
469 B
C

--- prefcnt.c.orig 2016-06-30 19:30:28 UTC
+++ prefcnt.c
@@ -66,9 +66,11 @@ static void refcnt_tag(struct tag *tag,
tag->visited = 1;
- if (tag__is_struct(tag) || tag__is_union(tag))
- type__for_each_member(tag__type(tag), member)
+ if (tag__is_struct(tag) || tag__is_union(tag)) {
+ type__for_each_member(tag__type(tag), member) {
refcnt_member(member, cu);
+ }
+ }
}
static void refcnt_lexblock(const struct lexblock *lexblock, const struct cu *cu)