[flang-commits] [flang] [flang][aa] Use Fortran dummy intent in FIR call modref (PR #227432)
via flang-commits
flang-commits at lists.llvm.org
Tue Sep 29 11:57:03 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 h,cpp -- flang/include/flang/Optimizer/Dialect/FIROpsSupport.h flang/lib/Optimizer/Analysis/AliasAnalysis.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/Optimizer/Analysis/AliasAnalysis.cpp b/flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
index 1caa5e267..f43ed5007 100644
--- a/flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
+++ b/flang/lib/Optimizer/Analysis/AliasAnalysis.cpp
@@ -1108,8 +1108,8 @@ ModRefResult AliasAnalysis::getCallModRef(Operation *op, Value var) {
if (!intent || *intent == fir::FortranDummyIntent::InOut)
return ModRefResult::getModAndRef();
passed = passed.merge(*intent == fir::FortranDummyIntent::In
- ? ModRefResult::getRef()
- : ModRefResult::getMod());
+ ? ModRefResult::getRef()
+ : ModRefResult::getMod());
}
return passed;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/227432
More information about the flang-commits
mailing list