[lld] Fix typo. NFC

This commit is contained in:
Alexander Shaposhnikov 2022-01-18 02:31:08 +00:00
parent b396a6dc0c
commit 2bb7f226af
1 changed files with 1 additions and 1 deletions

View File

@ -616,7 +616,7 @@ bool AArch64Relaxer::tryRelaxAdrpLdr(const Relocation &adrpRel,
if (!adrpRel.sym || adrpRel.sym != ldrRel.sym || !adrpRel.sym->isDefined() || if (!adrpRel.sym || adrpRel.sym != ldrRel.sym || !adrpRel.sym->isDefined() ||
adrpRel.sym->isPreemptible || adrpRel.sym->isGnuIFunc()) adrpRel.sym->isPreemptible || adrpRel.sym->isGnuIFunc())
return false; 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) if (adrpRel.addend != 0 || ldrRel.addend != 0)
return false; return false;
uint32_t adrpInstr = read32le(buf + adrpRel.offset); uint32_t adrpInstr = read32le(buf + adrpRel.offset);