[lld] r321140 - Replace a dyn_cast_or_null with dyn_cast.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 19 17:57:20 PST 2017
Author: rafael
Date: Tue Dec 19 17:57:19 2017
New Revision: 321140
URL: http://llvm.org/viewvc/llvm-project?rev=321140&view=rev
Log:
Replace a dyn_cast_or_null with dyn_cast.
The variable being casted was accessed in the previous line.
Modified:
lld/trunk/ELF/SymbolTable.cpp
Modified: lld/trunk/ELF/SymbolTable.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/SymbolTable.cpp?rev=321140&r1=321139&r2=321140&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Tue Dec 19 17:57:19 2017
@@ -582,7 +582,7 @@ template <class ELFT> void SymbolTable::
// Mark the symbol not to be eliminated by LTO
// even if it is a bitcode symbol.
B->IsUsedInRegularObj = true;
- if (auto *L = dyn_cast_or_null<Lazy>(B))
+ if (auto *L = dyn_cast<Lazy>(B))
if (InputFile *File = L->fetch())
addFile<ELFT>(File);
}
More information about the llvm-commits
mailing list