[compiler-rt] [sanitizer_common][PowerPC64] Fix internal_clone() error handling (PR #99908)

Ilya Leoshkevich via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 29 05:45:38 PDT 2024


================
@@ -1630,13 +1630,22 @@ uptr internal_clone(int (*fn)(void *), void *child_stack, int flags, void *arg,
       "sc\n\t"
 
       /* Return to parent */
+      "0:\n\t"
+      "neg %0,3\n\t"
+      "b 2f\n\t"
       "1:\n\t"
-      "mr %0, 3\n\t"
+      "mr %0,3\n\t"
+      "2:\n\t"
----------------
iii-i wrote:

Sure. I've updated the patch.

https://github.com/llvm/llvm-project/pull/99908


More information about the llvm-commits mailing list