[lld-maco] fix build breakage

This commit is contained in:
Greg McGary 2020-09-22 20:42:12 -07:00
parent ab1b4810b5
commit ab903560a4

View File

@ -324,7 +324,7 @@ public:
void Writer::scanRelocations() {
for (InputSection *isec : inputSections) {
for (Reloc &r : isec->relocs) {
if (auto *s = r.target.dyn_cast<lld::macho::Symbol *>()) {
if (auto *s = r.referent.dyn_cast<lld::macho::Symbol *>()) {
if (isa<Undefined>(s))
error("undefined symbol " + s->getName() + ", referenced from " +
sys::path::filename(isec->file->getName()));