summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/MarkLive.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/MarkLive.cpp b/lld/ELF/MarkLive.cpp
index b737eac800b..b91be129772 100644
--- a/lld/ELF/MarkLive.cpp
+++ b/lld/ELF/MarkLive.cpp
@@ -74,8 +74,8 @@ static void resolveReloc(InputSectionBase &Sec, RelT &Rel,
return;
}
- if (auto *U = dyn_cast<Undefined>(&B))
- for (InputSectionBase *Sec : CNamedSections.lookup(U->getName()))
+ if (B.isUndefined())
+ for (InputSectionBase *Sec : CNamedSections.lookup(B.getName()))
Fn(Sec, 0);
}
OpenPOWER on IntegriCloud