[clang] [Driver][ROCm][OpenMP] Fix default ockl linking for OpenMP. (PR #126186)

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 7 00:08:52 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 083686daf9feb5b5acadaef22e60b10a8b781f8a 030e486cbd0cff569ea17028ab22dbd42edf8e5a --extensions c,cpp -- clang/lib/Driver/ToolChains/AMDGPU.cpp clang/test/Driver/amdgpu-openmp-sanitize-options.c
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Driver/ToolChains/AMDGPU.cpp b/clang/lib/Driver/ToolChains/AMDGPU.cpp
index efa6c83538..202198e96c 100644
--- a/clang/lib/Driver/ToolChains/AMDGPU.cpp
+++ b/clang/lib/Driver/ToolChains/AMDGPU.cpp
@@ -1027,7 +1027,7 @@ RocmInstallationDetector::getCommonBitcodeLibs(
   };
   auto AddSanBCLibs = [&]() {
     if (GPUSanEnabled()) {
-        AddBCLib(getAsanRTLPath(), false);
+      AddBCLib(getAsanRTLPath(), false);
     }
   };
 

``````````

</details>


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


More information about the cfe-commits mailing list