mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-20 01:57:37 +00:00
[lld-maco] fix build breakage
This commit is contained in:
parent
ab1b4810b5
commit
ab903560a4
@ -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()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user