[flang-commits] [flang] [Flang] Do not provide a shape operand for box addresses (PR #157732)

via flang-commits flang-commits at lists.llvm.org
Tue Sep 16 14:00:45 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 origin/main HEAD --extensions cpp -- flang/lib/Lower/ConvertVariable.cpp
``````````

: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/Lower/ConvertVariable.cpp b/flang/lib/Lower/ConvertVariable.cpp
index 0bf24ca20..da964c956 100644
--- a/flang/lib/Lower/ConvertVariable.cpp
+++ b/flang/lib/Lower/ConvertVariable.cpp
@@ -2440,7 +2440,8 @@ void Fortran::lower::mapSymbolAttributes(
   // Compute array extents and lower bounds.
   if (ba.isArray()) {
     // Handle unused entry dummy arrays with BaseBoxType before processing shape
-    if (isUnusedEntryDummy && llvm::isa<fir::BaseBoxType>(converter.genType(var)))
+    if (isUnusedEntryDummy &&
+        llvm::isa<fir::BaseBoxType>(converter.genType(var)))
       if (genUnusedEntryPointBox())
         return;
     if (ba.isStaticArray()) {

``````````

</details>


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


More information about the flang-commits mailing list