[flang-commits] [flang] [not-for-merge] Experiment with using alloc's first component (PR #84123)

via flang-commits flang-commits at lists.llvm.org
Tue Mar 5 22:27:06 PST 2024


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 7bad74e66756ca2fd1fe4f5864e7123fb4553d78 4ec8f353a4782413580a9c5a4e5d3c6a6b0ae6fa -- flang/include/flang/Optimizer/Builder/HLFIRTools.h flang/lib/Lower/Bridge.cpp flang/lib/Optimizer/Builder/HLFIRTools.cpp
``````````

</details>

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

``````````diff
diff --git a/flang/lib/Lower/Bridge.cpp b/flang/lib/Lower/Bridge.cpp
index 225aefbbf3..1403145b90 100644
--- a/flang/lib/Lower/Bridge.cpp
+++ b/flang/lib/Lower/Bridge.cpp
@@ -966,8 +966,8 @@ private:
     if (lowerToHighLevelFIR()) {
       if (std::optional<fir::FortranVariableOpInterface> var =
               symMap->lookupVariableDefinition(sym)) {
-        auto exv =
-            hlfir::translateToExtendedValue(toLocation(), *builder, *var, forceDeclBaseHACK);
+        auto exv = hlfir::translateToExtendedValue(toLocation(), *builder, *var,
+                                                   forceDeclBaseHACK);
         return exv.match(
             [](mlir::Value x) -> Fortran::lower::SymbolBox {
               return Fortran::lower::SymbolBox::Intrinsic{x};

``````````

</details>


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


More information about the flang-commits mailing list