[libc-commits] [PATCH] D146981: [libc] Fix longjmp's fake return in x86_64
Mikhail Ramalho via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon Mar 27 13:05:39 PDT 2023
mikhail.ramalho marked an inline comment as done.
mikhail.ramalho added inline comments.
================
Comment at: libc/test/src/setjmp/setjmp_test.cpp:36
+ int val = __llvm_libc::setjmp(env);
+ if (val == 0)
+ __llvm_libc::longjmp(env, val);
----------------
sivachandra wrote:
> We should have some check to ensure that `longjmp` is indeed being called?
I added a variable to count how many times longjmp was called, and reused the longjmp function that was already there. WDY?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D146981/new/
https://reviews.llvm.org/D146981
More information about the libc-commits
mailing list