[lld] ab90356 - [lld-maco] fix build breakage
Greg McGary via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 22 20:42:31 PDT 2020
Author: Greg McGary
Date: 2020-09-22T20:42:23-07:00
New Revision: ab903560a466194d4350600ad946934eb72f1a14
URL: https://github.com/llvm/llvm-project/commit/ab903560a466194d4350600ad946934eb72f1a14
DIFF: https://github.com/llvm/llvm-project/commit/ab903560a466194d4350600ad946934eb72f1a14.diff
LOG: [lld-maco] fix build breakage
Added:
Modified:
lld/MachO/Writer.cpp
Removed:
################################################################################
diff --git a/lld/MachO/Writer.cpp b/lld/MachO/Writer.cpp
index f3a1fdded79d..86bbab20ffc0 100644
--- a/lld/MachO/Writer.cpp
+++ b/lld/MachO/Writer.cpp
@@ -324,7 +324,7 @@ class LCBuildVersion : public LoadCommand {
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()));
More information about the llvm-commits
mailing list