[flang-commits] [flang] [flang] Add structure constructor with allocatable component (PR #77845)
via flang-commits
flang-commits at lists.llvm.org
Mon Jan 15 18:42:07 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 bdfe5d69dee7baa0a54cddca8a99e0fdaeded4a2 2fd230411796f9b983f112327cd82325f3e021b4 -- flang/lib/Evaluate/check-expression.cpp flang/lib/Evaluate/fold.cpp flang/lib/Lower/ConvertConstant.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/lib/Lower/ConvertConstant.cpp b/flang/lib/Lower/ConvertConstant.cpp
index 756eab6da4..336944d35b 100644
--- a/flang/lib/Lower/ConvertConstant.cpp
+++ b/flang/lib/Lower/ConvertConstant.cpp
@@ -365,7 +365,8 @@ static mlir::Value genStructureComponentInit(
if (Fortran::semantics::IsAllocatable(sym)) {
if (!Fortran::evaluate::IsNullPointer(expr)) {
- fir::emitFatalError(loc, "constant structure constructor with an allocatable component value that is not NULL");
+ fir::emitFatalError(loc, "constant structure constructor with an "
+ "allocatable component value that is not NULL");
} else {
// Handle NULL() initialization
mlir::Value componentValue{fir::factory::createUnallocatedBox(
``````````
</details>
https://github.com/llvm/llvm-project/pull/77845
More information about the flang-commits
mailing list