Skip to content

Commit 5142707

Browse files
authored
[libc] fix architecture guarding for 32bit sigsetjmp (#164923)
Fixes: #164653 Signed-off-by: Shreeyash Pandey <[email protected]>
1 parent 042ac91 commit 5142707

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libc/src/setjmp/x86_64/sigsetjmp.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ LLVM_LIBC_FUNCTION(int, sigsetjmp, (sigjmp_buf buf)) {
4141
[epilogue] "X"(sigsetjmp_epilogue)
4242
: "eax", "ebx", "ecx");
4343
}
44-
#endif
44+
#else
4545
[[gnu::naked]]
4646
LLVM_LIBC_FUNCTION(int, sigsetjmp, (sigjmp_buf, int)) {
4747
asm(R"(
@@ -64,5 +64,6 @@ LLVM_LIBC_FUNCTION(int, sigsetjmp, (sigjmp_buf, int)) {
6464
[epilogue] "X"(sigsetjmp_epilogue)
6565
: "rax", "rbx");
6666
}
67+
#endif
6768

6869
} // namespace LIBC_NAMESPACE_DECL

0 commit comments

Comments
 (0)