This is an archive of the discontinued LLVM Phabricator instance.

tsan: make cur_thread_init return cur_thread
ClosedPublic

Authored by dvyukov on Sep 23 2021, 11:35 PM.

Details

Summary

Whenever we call cur_thread_init, we call cur_thread on the next line.
So make cur_thread_init return the current thread directly.
Makes code a bit shorter, does not affect codegen.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Sep 23 2021, 11:35 PM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 23 2021, 11:35 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka accepted this revision.Sep 28 2021, 12:03 PM
This revision is now accepted and ready to land.Sep 28 2021, 12:03 PM
melver accepted this revision.Sep 30 2021, 12:39 AM
This revision was landed with ongoing or failed builds.Oct 5 2021, 6:24 AM
This revision was automatically updated to reflect the committed changes.