[lld] ddea3bf - [ELF] Remove redundant cast. NFC

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 5 02:07:19 PST 2022


Author: Fangrui Song
Date: 2022-01-05T02:07:15-08:00
New Revision: ddea3bf7d137c7070fe463cecb33983f0bf7af08

URL: https://github.com/llvm/llvm-project/commit/ddea3bf7d137c7070fe463cecb33983f0bf7af08
DIFF: https://github.com/llvm/llvm-project/commit/ddea3bf7d137c7070fe463cecb33983f0bf7af08.diff

LOG: [ELF] Remove redundant cast. NFC

Added: 
    

Modified: 
    lld/ELF/Relocations.cpp

Removed: 
    


################################################################################
diff  --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp
index bd5043274f9f..ec1913969945 100644
--- a/lld/ELF/Relocations.cpp
+++ b/lld/ELF/Relocations.cpp
@@ -1659,7 +1659,7 @@ void elf::postScanRelocations() {
   // Local symbols may need the aforementioned non-preemptible ifunc and GOT
   // handling. They don't need regular PLT.
   for (ELFFileBase *file : objectFiles)
-    for (Symbol *sym : cast<ELFFileBase>(file)->getLocalSymbols())
+    for (Symbol *sym : file->getLocalSymbols())
       fn(*sym);
 }
 


        


More information about the llvm-commits mailing list