[llvm-branch-commits] [flang] release/20.x: flang: Fix build with latest libc++ (#127362) (PR #127805)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Feb 19 07:00:30 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-runtime
Author: None (llvmbot)
<details>
<summary>Changes</summary>
Backport 2b340c10a611d929fee25e6222909c8915e3d6b6
Requested by: @<!-- -->tstellar
---
Full diff: https://github.com/llvm/llvm-project/pull/127805.diff
1 Files Affected:
- (modified) flang/runtime/io-api-minimal.cpp (+2-1)
``````````diff
diff --git a/flang/runtime/io-api-minimal.cpp b/flang/runtime/io-api-minimal.cpp
index 68768427be0c2..93ac82248aa4c 100644
--- a/flang/runtime/io-api-minimal.cpp
+++ b/flang/runtime/io-api-minimal.cpp
@@ -150,7 +150,8 @@ bool IODEF(OutputLogical)(Cookie cookie, bool truth) {
// Provide own definition for `std::__libcpp_verbose_abort` to avoid dependency
// on the version provided by libc++.
-void std::__libcpp_verbose_abort(char const *format, ...) {
+void std::__libcpp_verbose_abort(char const *format, ...) noexcept(
+ noexcept(std::__libcpp_verbose_abort(""))) {
va_list list;
va_start(list, format);
std::vfprintf(stderr, format, list);
``````````
</details>
https://github.com/llvm/llvm-project/pull/127805
More information about the llvm-branch-commits
mailing list