This is an archive of the discontinued LLVM Phabricator instance.

tsan: Support constructor arguments via New
ClosedPublic

Authored by melver on Jul 30 2021, 3:27 AM.

Details

Summary

Make New<>() a variadic function template and forward any arguments to
the constructor. std::forward<>() is inlined to avoid including
<utility>.

Diff Detail

Event Timeline

melver requested review of this revision.Jul 30 2021, 3:27 AM
melver created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 30 2021, 3:27 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
dvyukov accepted this revision.Jul 30 2021, 3:44 AM
This revision is now accepted and ready to land.Jul 30 2021, 3:44 AM
This revision was automatically updated to reflect the committed changes.