[lld] r265250 - [ELF] Prefer 'auto' over explicit type for consistency.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 2 16:47:54 PDT 2016
Author: davide
Date: Sat Apr 2 18:47:54 2016
New Revision: 265250
URL: http://llvm.org/viewvc/llvm-project?rev=265250&view=rev
Log:
[ELF] Prefer 'auto' over explicit type for consistency.
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=265250&r1=265249&r2=265250&view=diff
==============================================================================
--- lld/trunk/ELF/SymbolTable.cpp (original)
+++ lld/trunk/ELF/SymbolTable.cpp Sat Apr 2 18:47:54 2016
@@ -216,7 +216,7 @@ template <class ELFT> void SymbolTable<E
SymbolBody *Existing = Sym->Body;
- if (Lazy *L = dyn_cast<Lazy>(Existing)) {
+ if (auto *L = dyn_cast<Lazy>(Existing)) {
if (auto *Undef = dyn_cast<Undefined>(New)) {
addMemberFile(Undef, L);
return;
More information about the llvm-commits
mailing list