summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/COFF/Writer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/COFF/Writer.cpp b/lld/COFF/Writer.cpp
index c67fac59f92..083839c2bab 100644
--- a/lld/COFF/Writer.cpp
+++ b/lld/COFF/Writer.cpp
@@ -219,7 +219,7 @@ uint64_t Defined::getSecrel() {
uint64_t Defined::getSectionIndex() {
if (auto *D = dyn_cast<DefinedRegular>(this))
return D->getChunk()->getOutputSection()->SectionIndex;
- if (auto *D = dyn_cast<DefinedAbsolute>(this))
+ if (isa<DefinedAbsolute>(this))
return DefinedAbsolute::OutputSectionIndex;
fatal("SECTION relocation points to a non-regular symbol: " +
toString(*this));
OpenPOWER on IntegriCloud