This is an archive of the discontinued LLVM Phabricator instance.

[SanitizerBinaryMetadata] Make constructors/destructors hidden
ClosedPublic

Authored by melver on Feb 8 2023, 3:10 PM.

Details

Summary

By switching them to external with default visibility, DSOs may not call
their own constructor/destructor. This is incorrect, because they pass
different parameters.

Fix it by marking the ctors/dtors as external linkage but with hidden
visibility.

Diff Detail

Event Timeline

melver created this revision.Feb 8 2023, 3:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2023, 3:10 PM
melver requested review of this revision.Feb 8 2023, 3:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 8 2023, 3:10 PM
MaskRay accepted this revision.Feb 8 2023, 3:19 PM
This revision is now accepted and ready to land.Feb 8 2023, 3:19 PM
This revision was landed with ongoing or failed builds.Feb 8 2023, 3:47 PM
This revision was automatically updated to reflect the committed changes.