Skip to content

Commit 669bc63

Browse files
author
git apple-llvm automerger
committed
Merge commit '5d86fb7d9deb' from llvm.org/main into next
2 parents 9fc48d6 + 5d86fb7 commit 669bc63

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Object/RelocationResolver.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -888,8 +888,7 @@ uint64_t resolveRelocation(RelocationResolver Resolver, const RelocationRef &R,
888888
return Elf64BEObj->getRelSection(R.getRawDataRefImpl())->sh_type;
889889
};
890890

891-
if (GetRelSectionType() == ELF::SHT_RELA ||
892-
GetRelSectionType() == ELF::SHT_CREL) {
891+
if (GetRelSectionType() == ELF::SHT_RELA) {
893892
Addend = getELFAddend(R);
894893
// LoongArch and RISCV relocations use both LocData and Addend.
895894
if (Obj->getArch() != Triple::loongarch32 &&

0 commit comments

Comments
 (0)