[lld] cd52b35 - fix comment typos to cycle bots
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 4 05:56:30 PDT 2022
Author: Nico Weber
Date: 2022-04-04T08:56:18-04:00
New Revision: cd52b35ee419bc9ce293b5943e0452511cf0b25e
URL: https://github.com/llvm/llvm-project/commit/cd52b35ee419bc9ce293b5943e0452511cf0b25e
DIFF: https://github.com/llvm/llvm-project/commit/cd52b35ee419bc9ce293b5943e0452511cf0b25e.diff
LOG: fix comment typos to cycle bots
Added:
Modified:
lld/ELF/Arch/X86_64.cpp
lld/ELF/SyntheticSections.h
Removed:
################################################################################
diff --git a/lld/ELF/Arch/X86_64.cpp b/lld/ELF/Arch/X86_64.cpp
index 8c2333cd9bd8c..e7fb229e08e08 100644
--- a/lld/ELF/Arch/X86_64.cpp
+++ b/lld/ELF/Arch/X86_64.cpp
@@ -279,7 +279,7 @@ bool X86_64::deleteFallThruJmpInsn(InputSection &is, InputFile *file,
// Now, check if flip and delete is possible.
const unsigned sizeOfJmpCCInsn = 6;
- // To flip, there must be atleast one JmpCC and one direct jmp.
+ // To flip, there must be at least one JmpCC and one direct jmp.
if (is.getSize() < sizeOfDirectJmpInsn + sizeOfJmpCCInsn)
return false;
diff --git a/lld/ELF/SyntheticSections.h b/lld/ELF/SyntheticSections.h
index ad948e896871a..127c847f16a1a 100644
--- a/lld/ELF/SyntheticSections.h
+++ b/lld/ELF/SyntheticSections.h
@@ -955,7 +955,7 @@ class MergeNoTailSection final : public MergeSyntheticSection {
// The reason why we don't want to use the least significant bits is
// because DenseMap also uses lower bits to determine a bucket ID.
// If we use lower bits, it significantly increases the probability of
- // hash collisons.
+ // hash collisions.
size_t getShardId(uint32_t hash) {
assert((hash >> 31) == 0);
return hash >> (31 - llvm::countTrailingZeros(numShards));
More information about the llvm-commits
mailing list