[lld] r303948 - Remove dummy cast. NFC.

Rafael Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu May 25 17:37:39 PDT 2017


Author: rafael
Date: Thu May 25 19:37:39 2017
New Revision: 303948

URL: http://llvm.org/viewvc/llvm-project?rev=303948&view=rev
Log:
Remove dummy cast. NFC.

Modified:
    lld/trunk/ELF/SyntheticSections.cpp

Modified: lld/trunk/ELF/SyntheticSections.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SyntheticSections.cpp?rev=303948&r1=303947&r2=303948&view=diff
==============================================================================
--- lld/trunk/ELF/SyntheticSections.cpp (original)
+++ lld/trunk/ELF/SyntheticSections.cpp Thu May 25 19:37:39 2017
@@ -2183,7 +2183,7 @@ ARMExidxSentinelSection::ARMExidxSentine
 // | PREL31 upper bound of code that has exception tables | EXIDX_CANTUNWIND |
 void ARMExidxSentinelSection::writeTo(uint8_t *Buf) {
   // Get the InputSection before us, we are by definition last
-  auto RI = cast<OutputSection>(this->OutSec)->Sections.rbegin();
+  auto RI = this->OutSec->Sections.rbegin();
   InputSection *LE = *(++RI);
   InputSection *LC = cast<InputSection>(LE->getLinkOrderDep());
   uint64_t S = LC->OutSec->Addr + LC->getOffset(LC->getSize());




More information about the llvm-commits mailing list