[flang-commits] [flang] [flang] fix hlfir stack merging issue on AIX (PR #78435)
via flang-commits
flang-commits at lists.llvm.org
Wed Jan 17 04:31:28 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 6c1b5ec213ee7376bed9357211e5582931318974 1b4080ecaac67d953c4dca828d57b3dd3cf3f4fe -- flang/lib/Optimizer/HLFIR/Transforms/SimplifyHLFIRIntrinsics.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Optimizer/HLFIR/Transforms/SimplifyHLFIRIntrinsics.cpp b/flang/lib/Optimizer/HLFIR/Transforms/SimplifyHLFIRIntrinsics.cpp
index c15ea73736..2751575ce9 100644
--- a/flang/lib/Optimizer/HLFIR/Transforms/SimplifyHLFIRIntrinsics.cpp
+++ b/flang/lib/Optimizer/HLFIR/Transforms/SimplifyHLFIRIntrinsics.cpp
@@ -50,7 +50,8 @@ public:
auto genKernel = [&array](mlir::Location loc, fir::FirOpBuilder &builder,
mlir::ValueRange inputIndices) -> hlfir::Entity {
assert(inputIndices.size() == 2 && "checked in TransposeOp::validate");
- const std::initializer_list<mlir::Value> initList = {inputIndices[1], inputIndices[0]};
+ const std::initializer_list<mlir::Value> initList = {inputIndices[1],
+ inputIndices[0]};
mlir::ValueRange transposedIndices(initList);
hlfir::Entity element =
hlfir::getElementAt(loc, builder, array, transposedIndices);
``````````
</details>
https://github.com/llvm/llvm-project/pull/78435
More information about the flang-commits
mailing list