diff options
author | Dimitry Andric <dimitry@andric.com> | 2024-01-23 00:06:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 00:06:07 +0100 |
commit | 042bb2850dcdd0b8a519f51678f2e40d0a97f548 (patch) | |
tree | 98c66359114f88b8b61c27677d64072c679384ec /llvm/lib/CodeGen/SelectOptimize.cpp | |
parent | 6953b367027e4234607a6718a0a1d57eb52ef57e (diff) | |
download | llvm-042bb2850dcdd0b8a519f51678f2e40d0a97f548.zip llvm-042bb2850dcdd0b8a519f51678f2e40d0a97f548.tar.gz llvm-042bb2850dcdd0b8a519f51678f2e40d0a97f548.tar.bz2 |
[tsan] Fix build for FreeBSD and NetBSD after 0784b1eefa36 (#79019)
In 0784b1eefa36 some code for re-execution was moved to
`ReExecIfNeeded()`, but also extended with a few Linux-only features.
This leads to compile errors on FreeBSD, or other non-Linux platforms:
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp:247:25: error: use of
undeclared identifier 'personality'
247 | int old_personality = personality(0xffffffff);
| ^
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp:249:54: error: use of
undeclared identifier 'ADDR_NO_RANDOMIZE'
249 | (old_personality != -1) && ((old_personality & ADDR_NO_RANDOMIZE)
== 0);
| ^
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp:281:46: error: use of
undeclared identifier 'ADDR_NO_RANDOMIZE'
281 | CHECK_NE(personality(old_personality | ADDR_NO_RANDOMIZE), -1);
| ^
Surround the affected part with a `#if SANITIZER_LINUX` block for now.
Diffstat (limited to 'llvm/lib/CodeGen/SelectOptimize.cpp')
0 files changed, 0 insertions, 0 deletions