[clang] [HIP] use offload wrapper for non-device-only non-rdc (PR #132869)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Mar 27 14:05:00 PDT 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 8244f8210f2e62f68429a0daf104fd483ada45ab 987007b668991ab8027a569f2aaafb5237dfc194 --extensions cpp -- clang/lib/CodeGen/CGCUDANV.cpp clang/lib/Driver/Driver.cpp clang/lib/Driver/ToolChains/Clang.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp
index dd4ad2d644..90d8e823d1 100644
--- a/clang/lib/Driver/Driver.cpp
+++ b/clang/lib/Driver/Driver.cpp
@@ -4975,8 +4975,7 @@ Action *Driver::BuildOffloadingActions(Compilation &C,
for (Action *&A : DeviceActions) {
if ((A->getType() != types::TY_Object &&
A->getType() != types::TY_LTO_BC) ||
- !HIPNoRDC ||
- !offloadDeviceOnly())
+ !HIPNoRDC || !offloadDeviceOnly())
continue;
ActionList LinkerInput = {A};
A = C.MakeAction<LinkJobAction>(LinkerInput, types::TY_Image);
``````````
</details>
https://github.com/llvm/llvm-project/pull/132869
More information about the cfe-commits
mailing list