[flang-commits] [flang] [flang] Ensure that the integer for Cray pointer is sized correctly (PR #140822)
via flang-commits
flang-commits at lists.llvm.org
Tue May 20 16:56:20 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 HEAD~1 HEAD --extensions h,cpp -- flang/include/flang/Evaluate/target.h flang/include/flang/Tools/TargetSetup.h flang/lib/Semantics/resolve-names.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/include/flang/Evaluate/target.h b/flang/include/flang/Evaluate/target.h
index 281e42d52..e8b9fedc3 100644
--- a/flang/include/flang/Evaluate/target.h
+++ b/flang/include/flang/Evaluate/target.h
@@ -132,9 +132,7 @@ public:
const IeeeFeatures &ieeeFeatures() const { return ieeeFeatures_; }
std::size_t pointerSize() { return pointerSize_; }
- void set_pointerSize(std::size_t pointerSize) {
- pointerSize_ = pointerSize;
- }
+ void set_pointerSize(std::size_t pointerSize) { pointerSize_ = pointerSize; }
private:
static constexpr int maxKind{common::maxKind};
diff --git a/flang/include/flang/Tools/TargetSetup.h b/flang/include/flang/Tools/TargetSetup.h
index a30c725e2..24ab65f74 100644
--- a/flang/include/flang/Tools/TargetSetup.h
+++ b/flang/include/flang/Tools/TargetSetup.h
@@ -95,7 +95,7 @@ namespace Fortran::tools {
targetCharacteristics.set_isOSWindows(true);
targetCharacteristics.set_pointerSize(
- targetTriple.getArchPointerBitWidth() / 8);
+ targetTriple.getArchPointerBitWidth() / 8);
// TODO: use target machine data layout to set-up the target characteristics
// type size and alignment info.
``````````
</details>
https://github.com/llvm/llvm-project/pull/140822
More information about the flang-commits
mailing list