[compiler-rt] [compiler-rt][sanitizer] fix i386 build for Haiku (PR #171075)

Joachim Mairböck via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 8 01:05:07 PST 2025


================
@@ -629,7 +629,11 @@ typedef unsigned long __sanitizer_sigset_t;
 #  elif SANITIZER_APPLE
 typedef unsigned __sanitizer_sigset_t;
 #  elif SANITIZER_HAIKU
+#    if defined(__x86_64__)
 typedef unsigned long __sanitizer_sigset_t;
+#    else
+typedef unsigned long long __sanitizer_sigset_t;
----------------
jmairboeck wrote:

`unsigned long long` should be the same as `unsigned long` on 64 bit, so this could be simplified to always use `unsigned long long`.

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


More information about the llvm-commits mailing list