forked from OSchip/llvm-project
[sanitizer][aarch64] fix clone system call's inline assembly
Return value of the system call was not returned normally. It was discussed at https://reviews.llvm.org/D105169.
This commit is contained in:
parent
e56d680fe8
commit
7f7cab6bb1
|
@ -1380,7 +1380,7 @@ uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg,
|
|||
#elif defined(__aarch64__)
|
||||
uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg,
|
||||
int *parent_tidptr, void *newtls, int *child_tidptr) {
|
||||
long long res;
|
||||
register long long res __asm__("x0");
|
||||
if (!fn || !child_stack)
|
||||
return -EINVAL;
|
||||
CHECK_EQ(0, (uptr)child_stack % 16);
|
||||
|
|
Loading…
Reference in New Issue