[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
This commit is contained in:
Martin Storsjo 2019-06-08 18:26:27 +00:00
parent 4962f9464d
commit 6ddd7aa4c3
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ uint32_t PPC::getThunkSectionSpacing() const { return 0x2000000; }
bool PPC::inBranchRange(RelType Type, uint64_t Src, uint64_t Dst) const { bool PPC::inBranchRange(RelType Type, uint64_t Src, uint64_t Dst) const {
uint64_t Offset = Dst - Src; 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); return isInt<26>(Offset);
llvm_unreachable("unsupported relocation type used in branch"); llvm_unreachable("unsupported relocation type used in branch");
} }