Update for llvm change.
llvm-svn: 285956
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index 0b8343b..99f7ac1 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -778,9 +778,9 @@
const typename ELFT::Shdr &RelSec) {
ELFFile<ELFT> &EObj = S.getFile()->getObj();
if (RelSec.sh_type == SHT_RELA)
- scanRelocs(S, EObj.relas(&RelSec));
+ scanRelocs(S, check(EObj.relas(&RelSec)));
else
- scanRelocs(S, EObj.rels(&RelSec));
+ scanRelocs(S, check(EObj.rels(&RelSec)));
}
template <class ELFT, class RelTy>
@@ -808,9 +808,9 @@
const typename ELFT::Shdr &RelSec) {
ELFFile<ELFT> &EObj = S.getFile()->getObj();
if (RelSec.sh_type == SHT_RELA)
- createThunks(S, EObj.relas(&RelSec));
+ createThunks(S, check(EObj.relas(&RelSec)));
else
- createThunks(S, EObj.rels(&RelSec));
+ createThunks(S, check(EObj.rels(&RelSec)));
}
template void scanRelocations<ELF32LE>(InputSectionBase<ELF32LE> &,