[compiler-rt] [compiler-rt] Make sure __clzdi2 doesn't call itself recursively on sparc64 (PR #136737)

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 22 11:32:33 PDT 2025


================
@@ -14,12 +14,12 @@
 
 // Returns: the number of leading 0-bits
 
-#if !defined(__clang__) &&                                                     \
-    ((defined(__sparc__) && defined(__arch64__)) || defined(__mips64) ||       \
+#if ((defined(__sparc__) && defined(__arch64__)) || defined(__mips64) ||       \
----------------
compnerd wrote:

This doesn't make sense ... `defined(__sparc__) && defined(__aarch64__)`. I think that is supposed to be `||`.

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


More information about the llvm-commits mailing list