[llvm-branch-commits] [clang] [Clang] Add -fsanitize=daddress for Device AddressSanitizer (PR #242444)

Yaxun Liu via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Nov 14 03:43:53 PST 2026


================
@@ -130,6 +130,11 @@ void AMDGCN::Linker::constructLldCommand(Compilation &C, const JobAction &JA,
     LldArgs.push_back(Input.getFilename());
   TC.addProfileRTLibs(Args, LldArgs);
 
+  // Link the sanitizer runtimes for the standalone LLD invocation.
----------------
yxsamliu wrote:

`-fno-sanitize-link-runtime` still links DASan with `--offload-device-only -x hip`. Could this also check `linkRuntimes()` and add a test?

https://github.com/llvm/llvm-project/pull/242444


More information about the llvm-branch-commits mailing list