We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8802c9f commit b2468d7Copy full SHA for b2468d7
libc/src/errno/libc_errno.cpp
@@ -57,7 +57,7 @@ namespace {
57
LIBC_THREAD_LOCAL int thread_errno;
58
}
59
60
-extern "C" int *__llvm_libc_errno() { return &thread_errno; }
+extern "C" int *__llvm_libc_errno() noexcept { return &thread_errno; }
61
62
void Errno::operator=(int a) { thread_errno = a; }
63
Errno::operator int() { return thread_errno; }
@@ -68,7 +68,7 @@ namespace {
68
int shared_errno;
69
70
71
-extern "C" int *__llvm_libc_errno() { return &shared_errno; }
+extern "C" int *__llvm_libc_errno() noexcept { return &shared_errno; }
72
73
void Errno::operator=(int a) { shared_errno = a; }
74
Errno::operator int() { return shared_errno; }
0 commit comments