[libc-commits] [libc] [libc] Mark internal __llvm_libc_errno as noexcept (PR #98760)

via libc-commits libc-commits at lists.llvm.org
Sat Jul 13 11:28:09 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-libc

Author: Petr Hosek (petrhosek)

<details>
<summary>Changes</summary>

The declaration must match the previous declaration in errno.h.

---
Full diff: https://github.com/llvm/llvm-project/pull/98760.diff


1 Files Affected:

- (modified) libc/src/errno/libc_errno.h (+1-1) 


``````````diff
diff --git a/libc/src/errno/libc_errno.h b/libc/src/errno/libc_errno.h
index 82c65f5a0b7f..44ee2714843b 100644
--- a/libc/src/errno/libc_errno.h
+++ b/libc/src/errno/libc_errno.h
@@ -33,7 +33,7 @@
 
 namespace LIBC_NAMESPACE_DECL {
 
-extern "C" int *__llvm_libc_errno();
+extern "C" int *__llvm_libc_errno() noexcept;
 
 struct Errno {
   void operator=(int);

``````````

</details>


https://github.com/llvm/llvm-project/pull/98760


More information about the libc-commits mailing list