Skip to content

Conversation

nickdesaulniers
Copy link
Member

My global find+replace was overzealous and broke post submit unit tests.

Link: #83345

My global find+replace was overzealous and broke post submit unit tests.

Link: llvm#83345
@llvmbot
Copy link
Member

llvmbot commented Feb 28, 2024

@llvm/pr-subscribers-libc

Author: Nick Desaulniers (nickdesaulniers)

Changes

My global find+replace was overzealous and broke post submit unit tests.

Link: #83345


Full diff: https://github.com/llvm/llvm-project/pull/83356.diff

1 Files Affected:

  • (modified) libc/src/string/memory_utils/generic/byte_per_byte.h (+1-1)
diff --git a/libc/src/string/memory_utils/generic/byte_per_byte.h b/libc/src/string/memory_utils/generic/byte_per_byte.h
index 948da8ab2a8702..9515398794df40 100644
--- a/libc/src/string/memory_utils/generic/byte_per_byte.h
+++ b/libc/src/string/memory_utils/generic/byte_per_byte.h
@@ -56,7 +56,7 @@ inline_bcmp_byte_per_byte(CPtr p1, CPtr p2, size_t count, size_t offset = 0) {
   LIBC_LOOP_NOUNROLL
   for (; offset < count; ++offset)
     if (p1[offset] != p2[offset])
-      return BcmpReturnType::zero();
+      return BcmpReturnType::nonzero();
   return BcmpReturnType::zero();
 }
 

nickdesaulniers referenced this pull request Feb 29, 2024
Codify that we use lower_case for
readability-identifier-naming.ConstexprFunctionCase and then fix the 11
violations (rather than codify UPPER_CASE and have to fix the 170 violations).
@nickdesaulniers
Copy link
Member Author

nickdesaulniers commented Feb 29, 2024 via email

@jhuber6 jhuber6 merged commit 27352e6 into llvm:main Feb 29, 2024
@nickdesaulniers nickdesaulniers deleted the typo branch February 29, 2024 16:28
mylai-mtk pushed a commit to mylai-mtk/llvm-project that referenced this pull request Jul 12, 2024
My global find+replace was overzealous and broke post submit unit tests.

Link: llvm#83345
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants