aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Shaposhnikov <ashaposhnikov@google.com>2022-01-18 02:31:08 +0000
committerAlexander Shaposhnikov <ashaposhnikov@google.com>2022-01-18 02:33:27 +0000
commit2bb7f226af18c537af299bd04a7fa57b31b0b2c7 (patch)
tree306c9380aa410724df633d440d111e92020216f8
parentb396a6dc0cd9de51b408d0bc94c68ef4f0b16245 (diff)
downloadllvm-2bb7f226af18c537af299bd04a7fa57b31b0b2c7.zip
llvm-2bb7f226af18c537af299bd04a7fa57b31b0b2c7.tar.gz
llvm-2bb7f226af18c537af299bd04a7fa57b31b0b2c7.tar.bz2
[lld] Fix typo. NFC
-rw-r--r--lld/ELF/Arch/AArch64.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Arch/AArch64.cpp b/lld/ELF/Arch/AArch64.cpp
index 96e16f7..784d578 100644
--- a/lld/ELF/Arch/AArch64.cpp
+++ b/lld/ELF/Arch/AArch64.cpp
@@ -616,7 +616,7 @@ bool AArch64Relaxer::tryRelaxAdrpLdr(const Relocation &adrpRel,
if (!adrpRel.sym || adrpRel.sym != ldrRel.sym || !adrpRel.sym->isDefined() ||
adrpRel.sym->isPreemptible || adrpRel.sym->isGnuIFunc())
return false;
- // Check if the addends of the both instructions are zero.
+ // Check if the addends of the both relocations are zero.
if (adrpRel.addend != 0 || ldrRel.addend != 0)
return false;
uint32_t adrpInstr = read32le(buf + adrpRel.offset);