[flang-commits] [flang] [flang] [cuda] Exclude non-variable actuals from unified-memory CUDA data attribute relaxation (PR #206121)
via flang-commits
flang-commits at lists.llvm.org
Fri Jun 26 09:07:34 PDT 2026
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 origin/main HEAD --extensions cpp,h -- flang/include/flang/Support/Fortran.h flang/lib/Semantics/check-call.cpp flang/lib/Semantics/expression.cpp flang/lib/Support/Fortran.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Semantics/check-call.cpp b/flang/lib/Semantics/check-call.cpp
index 464e55560..16c1e166d 100644
--- a/flang/lib/Semantics/check-call.cpp
+++ b/flang/lib/Semantics/check-call.cpp
@@ -1186,8 +1186,7 @@ static void CheckExplicitDataArg(const characteristics::DummyDataObject &dummy,
if (!skipCudaDataAttrCheck &&
!common::AreCompatibleCUDADataAttrs(dummyDataAttr, actualDataAttr,
dummy.ignoreTKR, /*allowUnifiedMatchingRule=*/true,
- isHostDeviceProc, &context.languageFeatures(),
- actualIsVariable)) {
+ isHostDeviceProc, &context.languageFeatures(), actualIsVariable)) {
auto toStr{[](std::optional<common::CUDADataAttr> x) {
return x ? "ATTRIBUTES("s +
parser::ToUpperCaseLetters(common::EnumToString(*x)) + ")"s
``````````
</details>
https://github.com/llvm/llvm-project/pull/206121
More information about the flang-commits
mailing list