diff options
author | Greg McGary <gkm@fb.com> | 2020-09-22 20:42:12 -0700 |
---|---|---|
committer | Greg McGary <gkm@fb.com> | 2020-09-22 20:42:23 -0700 |
commit | ab903560a466194d4350600ad946934eb72f1a14 (patch) | |
tree | 69cbd3a19b90d4299bd71d82260b22a949ea8402 /lld | |
parent | ab1b4810b55279bcf6fdd87be74a403440be3991 (diff) | |
download | llvm-ab903560a466194d4350600ad946934eb72f1a14.zip llvm-ab903560a466194d4350600ad946934eb72f1a14.tar.gz llvm-ab903560a466194d4350600ad946934eb72f1a14.tar.bz2 |
[lld-maco] fix build breakage
Diffstat (limited to 'lld')
-rw-r--r-- | lld/MachO/Writer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/MachO/Writer.cpp b/lld/MachO/Writer.cpp index f3a1fdd..86bbab2 100644 --- a/lld/MachO/Writer.cpp +++ b/lld/MachO/Writer.cpp @@ -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())); |