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

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


Author: Petr Hosek
Date: 2024-07-13T11:29:12-07:00
New Revision: 8802c9fd73da9451e69e15eed53b396c7d44a866

URL: https://github.com/llvm/llvm-project/commit/8802c9fd73da9451e69e15eed53b396c7d44a866
DIFF: https://github.com/llvm/llvm-project/commit/8802c9fd73da9451e69e15eed53b396c7d44a866.diff

LOG: [libc] Mark internal __llvm_libc_errno as noexcept (#98760)

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

Added: 
    

Modified: 
    libc/src/errno/libc_errno.h

Removed: 
    


################################################################################
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);


        


More information about the libc-commits mailing list