[all-commits] [llvm/llvm-project] 5e7810: [libcxx] Use __libcpp_verbose_abort for error mess...

Petr Hosek via All-commits all-commits at lists.llvm.org
Thu Sep 19 23:07:49 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5e7810882c8b58431358cd8da3a329a3c505de2c
      https://github.com/llvm/llvm-project/commit/5e7810882c8b58431358cd8da3a329a3c505de2c
  Author: Petr Hosek <phosek at google.com>
  Date:   2024-09-19 (Thu, 19 Sep 2024)

  Changed paths:
    M libcxx/src/support/runtime/exception_fallback.ipp
    M libcxx/src/support/runtime/exception_msvc.ipp
    M libcxx/src/support/runtime/exception_pointer_unimplemented.ipp

  Log Message:
  -----------
  [libcxx] Use __libcpp_verbose_abort for error messages (#108873)

Rather than using the following sequence of calls:

```
fprintf(stderr, "...");
::abort();
```

We should use the following:

```
__libcpp_verbose_abort("...")
```

This simplifies the code and ensures the behavior is consistent across
all call sites.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list