diff options
author | Reid Kleckner <rnk@google.com> | 2017-06-23 18:22:29 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2017-06-23 18:22:29 +0000 |
commit | 5a7eca5223f85a7084d22a1215a5a4b79920dc80 (patch) | |
tree | 16efce089e260369311666dc8085463a43fd3d43 | |
parent | d16a6e32fb4495b038cd922192053c005cbd738d (diff) | |
download | bcm5719-llvm-5a7eca5223f85a7084d22a1215a5a4b79920dc80.tar.gz bcm5719-llvm-5a7eca5223f85a7084d22a1215a5a4b79920dc80.zip |
Silence -Wunused-variable warning
llvm-svn: 306135
-rw-r--r-- | lld/COFF/Writer.cpp | 2 |
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)); |