Skip to content

Commit 459bfdf

Browse files
author
git apple-llvm automerger
committed
Merge commit 'aaf0643dd5d0' from llvm.org/main into next
2 parents 7d620e0 + aaf0643 commit 459bfdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lld/MachO/SyntheticSections.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1958,7 +1958,7 @@ void InitOffsetsSection::writeTo(uint8_t *buf) const {
19581958
// FIXME: Add function specified by -init when that argument is implemented.
19591959
for (ConcatInputSection *isec : sections) {
19601960
for (const Reloc &rel : isec->relocs) {
1961-
const Symbol *referent = rel.referent.dyn_cast<Symbol *>();
1961+
const Symbol *referent = cast<Symbol *>(rel.referent);
19621962
assert(referent && "section relocation should have been rejected");
19631963
uint64_t offset = referent->getVA() - in.header->addr;
19641964
// FIXME: Can we handle this gracefully?

0 commit comments

Comments
 (0)