This is an archive of the discontinued LLVM Phabricator instance.

Set a source location for Objective-C accessor stubs
ClosedPublic

Authored by aprantl on Dec 5 2019, 11:29 AM.

Details

Summary

Set a source location for Objective-C accessor stubs even when there is no explicit synthesize statement.

This fixes a regression introduced in https://reviews.llvm.org/D68108 that could lead to missing debug locations in cleanup code in synthesized Objective-C++ properties.

Diff Detail

Event Timeline

vsk added a comment.Dec 5 2019, 11:31 AM

Shall we add in the assert we discussed in CFG::FinishFunction, as an additional test?

In D71084#1771501, @vsk wrote:

Shall we add in the assert we discussed in CFG::FinishFunction, as an additional test?

Done over in https://reviews.llvm.org/D71042

vsk accepted this revision.Dec 5 2019, 12:31 PM

LGTM.

This revision is now accepted and ready to land.Dec 5 2019, 12:31 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptDec 5 2019, 12:47 PM