forked from OSchip/llvm-project
[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:
parent
4962f9464d
commit
6ddd7aa4c3
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue