This is an archive of the discontinued LLVM Phabricator instance.

Allow adding dll attributes on certain redecls with a warning if the decl hasn't been used yet (PR20746)
ClosedPublic

Authored by hans on Aug 27 2014, 12:58 PM.

Details

Summary

This shouldn't really be allowed, but it comes up in real code (see PR20746), and as long as the decl hasn't been used there's no technical difficulty in supporting it, so we can just downgrade the error to a warning.

Diff Detail

Repository
rL LLVM

Event Timeline

hans updated this revision to Diff 12996.Aug 27 2014, 12:58 PM
hans retitled this revision from to Allow adding dll attributes on certain redecls with a warning if the decl hasn't been used yet (PR20746).
hans updated this object.
hans edited the test plan for this revision. (Show Details)
hans added a reviewer: rnk.
hans added subscribers: Unknown Object (MLST), hansw.
rnk accepted this revision.Aug 27 2014, 1:24 PM
rnk edited edge metadata.

lgtm

This revision is now accepted and ready to land.Aug 27 2014, 1:24 PM
hans closed this revision.Aug 27 2014, 2:37 PM
hans updated this revision to Diff 13003.

Closed by commit rL216619 (authored by @hans).