[all-commits] [llvm/llvm-project] a0ed71: tsan: make cur_thread_init return cur_thread
Dmitry Vyukov via All-commits
all-commits at lists.llvm.org
Tue Oct 5 06:25:04 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a0ed71ff293b4ca4895fa5d184a008d048ea6fb1
https://github.com/llvm/llvm-project/commit/a0ed71ff293b4ca4895fa5d184a008d048ea6fb1
Author: Dmitry Vyukov <dvyukov at google.com>
Date: 2021-10-05 (Tue, 05 Oct 2021)
Changed paths:
M compiler-rt/lib/tsan/rtl/tsan_interceptors.h
M compiler-rt/lib/tsan/rtl/tsan_interceptors_posix.cpp
M compiler-rt/lib/tsan/rtl/tsan_interface.cpp
M compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
M compiler-rt/lib/tsan/rtl/tsan_rtl.h
Log Message:
-----------
tsan: make cur_thread_init return cur_thread
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.
Reviewed By: vitalybuka, melver
Differential Revision: https://reviews.llvm.org/D110384
More information about the All-commits
mailing list