[all-commits] [llvm/llvm-project] 4cefa8: [TSan][libdispatch] Fix compilation error on Linux
Julian Lettner via All-commits
all-commits at lists.llvm.org
Wed Sep 2 11:30:01 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 4cefa8614ffe18cf8de0fe86297df81f4385e08f
https://github.com/llvm/llvm-project/commit/4cefa8614ffe18cf8de0fe86297df81f4385e08f
Author: Julian Lettner <julian.lettner at apple.com>
Date: 2020-09-02 (Wed, 02 Sep 2020)
Changed paths:
M compiler-rt/lib/tsan/rtl/tsan_interceptors_libdispatch.cpp
Log Message:
-----------
[TSan][libdispatch] Fix compilation error on Linux
The interceptor for the block variants of the API references the
function versions (via `REAL(name##_f)`). On Linux, this accesses the
underlying "real pointer", defined by the interceptor macro. So we need
to declare interceptors in the right order to avoid undefined symbol
compiler error:
```
error: no member named 'real_dispatch_async_and_wait_f' in namespace '__tsan::__interception'
```
rdar://68181542
More information about the All-commits
mailing list