We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7d620e0 + aaf0643 commit 459bfdfCopy full SHA for 459bfdf
lld/MachO/SyntheticSections.cpp
@@ -1958,7 +1958,7 @@ void InitOffsetsSection::writeTo(uint8_t *buf) const {
1958
// FIXME: Add function specified by -init when that argument is implemented.
1959
for (ConcatInputSection *isec : sections) {
1960
for (const Reloc &rel : isec->relocs) {
1961
- const Symbol *referent = rel.referent.dyn_cast<Symbol *>();
+ const Symbol *referent = cast<Symbol *>(rel.referent);
1962
assert(referent && "section relocation should have been rejected");
1963
uint64_t offset = referent->getVA() - in.header->addr;
1964
// FIXME: Can we handle this gracefully?
0 commit comments