[compiler-rt] [compiler-rt][Mips] Fix stat size check on mips64 musl (PR #143301)

Brad Smith via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 17 15:19:29 PDT 2025


================
@@ -102,8 +102,10 @@ const unsigned struct_kernel_stat_sz = SANITIZER_ANDROID
                                            ? FIRST_32_SECOND_64(104, 128)
 #      if defined(_ABIN32) && _MIPS_SIM == _ABIN32
                                            : FIRST_32_SECOND_64(176, 216);
-#      else
+#      elif !SANITIZER_MUSL
                                            : FIRST_32_SECOND_64(160, 216);
----------------
brad0 wrote:

IMO it would be better to invert the logic. elif SANITIZER_MUSL

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


More information about the llvm-commits mailing list