[flang-commits] [flang] [flang] Implement !DIR$ VECTOR ALWAYS (PR #93830)

via flang-commits flang-commits at lists.llvm.org
Thu May 30 07:39:38 PDT 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 2f1e2325cfd804cc84eafc63dc775995fd2f3a1b be1ca42f1b9bc5517daaa3497889b5252675b1bf -- flang/include/flang/Lower/PFTBuilder.h flang/include/flang/Optimizer/Dialect/FIROps.h flang/include/flang/Parser/dump-parse-tree.h flang/include/flang/Parser/parse-tree.h flang/lib/Lower/Bridge.cpp flang/lib/Optimizer/Transforms/ControlFlowConverter.cpp flang/lib/Parser/Fortran-parsers.cpp flang/lib/Parser/unparse.cpp flang/lib/Semantics/resolve-names.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 8ce68f9b8c..55d4d190d0 100644
--- a/flang/lib/Lower/Bridge.cpp
+++ b/flang/lib/Lower/Bridge.cpp
@@ -2540,7 +2540,8 @@ private:
     if (e->isA<Fortran::parser::NonLabelDoStmt>()) {
       e->dirs.push_back(&dir);
     } else {
-      fir::emitFatalError(toLocation(), "loop directive must appear before a loop");
+      fir::emitFatalError(toLocation(),
+                          "loop directive must appear before a loop");
     }
   }
 

``````````

</details>


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


More information about the flang-commits mailing list