[flang-commits] [flang] [Flang][Runtime] Improve runtime implementation of the RENAME intrinsic (PR #99445)
via flang-commits
flang-commits at lists.llvm.org
Thu Jul 18 01:17:18 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 0ce3ea1bfffcbd62195cf07e34477cc7cc5c5009 23083f6101d31ff477893015d5641258b923db73 --extensions cpp -- flang/runtime/misc-intrinsic.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/flang/runtime/misc-intrinsic.cpp b/flang/runtime/misc-intrinsic.cpp
index 36264eca99..f7d893829f 100644
--- a/flang/runtime/misc-intrinsic.cpp
+++ b/flang/runtime/misc-intrinsic.cpp
@@ -84,7 +84,7 @@ void RTDEF(Rename)(const Descriptor &path1, const Descriptor &path2,
if (pathDst != path2.OffsetElement()) {
FreeMemory(pathDst);
}
-#else // !defined(RT_DEVICE_COMPILATION)
+#else // !defined(RT_DEVICE_COMPILATION)
terminator.Crash("RENAME intrinsic is only supported on host devices");
#endif // !defined(RT_DEVICE_COMPILATION)
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/99445
More information about the flang-commits
mailing list