forked from OSchip/llvm-project
parent
d16a6e32fb
commit
5a7eca5223
|
@ -219,7 +219,7 @@ uint64_t Defined::getSecrel() {
|
|||
uint64_t Defined::getSectionIndex() {
|
||||
if (auto *D = dyn_cast<DefinedRegular>(this))
|
||||
return D->getChunk()->getOutputSection()->SectionIndex;
|
||||
if (auto *D = dyn_cast<DefinedAbsolute>(this))
|
||||
if (isa<DefinedAbsolute>(this))
|
||||
return DefinedAbsolute::OutputSectionIndex;
|
||||
fatal("SECTION relocation points to a non-regular symbol: " +
|
||||
toString(*this));
|
||||
|
|
Loading…
Reference in New Issue