[cfe-commits] [PATCH] When marking a function used, also mark the first redeclaration.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Dec 25 14:30:00 PST 2012


>> Now that I think of it, it is probably best to just change
>> ShouldRemoveFromUnused. The attached patch does that.
>
> Do we propagate the used bit to redeclarations? If not, we should. I like this version a lot better.

We forward propagate it. So it is possible for an earlier decl not not
be marked used and a latter on to be, but not the other way. That is
way just uses the most current one solves the problem.

Cheers,
Rafael



More information about the cfe-commits mailing list