From 6ddd7aa4c3015e45b6624eb1f1e166a4fcf9cec7 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Sat, 8 Jun 2019 18:26:27 +0000 Subject: [PATCH] [ELF] [PPC] Fix a typo from SVN r362721 Apparently no test covers this exact codepath, but GCC produced a warning about it. llvm-svn: 362883 --- lld/ELF/Arch/PPC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lld/ELF/Arch/PPC.cpp b/lld/ELF/Arch/PPC.cpp index 57540c461de7..f578e0d44ecb 100644 --- a/lld/ELF/Arch/PPC.cpp +++ b/lld/ELF/Arch/PPC.cpp @@ -180,7 +180,7 @@ uint32_t PPC::getThunkSectionSpacing() const { return 0x2000000; } bool PPC::inBranchRange(RelType Type, uint64_t Src, uint64_t Dst) const { uint64_t Offset = Dst - Src; - if (Type == R_PPC_REL24 || R_PPC_PLTREL24) + if (Type == R_PPC_REL24 || Type == R_PPC_PLTREL24) return isInt<26>(Offset); llvm_unreachable("unsupported relocation type used in branch"); }