[clang] [compiler-rt] [Sanitizers] the access size (8 bytes) exceeds the max lock-free size (4 bytes) for 32-bit (PR #125388)
Wael Yehia via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 2 20:14:25 PST 2025
================
@@ -338,6 +338,10 @@ void aix::Linker::ConstructJob(Compilation &C, const JobAction &JA,
CmdArgs.push_back("-lpthread");
}
const char *Exec = Args.MakeArgString(ToolChain.GetLinkerPath());
+
+ if (Sanitize.hasAnySanitizer() && IsArch32Bit) {
----------------
w2yehia wrote:
a comment on why we need -latomic here.
For example:
```
// Some code in the sanitizer libs requires 64-bit atomics.
```
https://github.com/llvm/llvm-project/pull/125388
More information about the llvm-commits
mailing list