[lld] r287481 - Use auto for obvious types.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 19 18:43:44 PST 2016
Author: ruiu
Date: Sat Nov 19 20:43:44 2016
New Revision: 287481
URL: http://llvm.org/viewvc/llvm-project?rev=287481&view=rev
Log:
Use auto for obvious types.
Modified:
lld/trunk/ELF/ICF.cpp
Modified: lld/trunk/ELF/ICF.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/ICF.cpp?rev=287481&r1=287480&r2=287481&view=diff
==============================================================================
--- lld/trunk/ELF/ICF.cpp (original)
+++ lld/trunk/ELF/ICF.cpp Sat Nov 19 20:43:44 2016
@@ -194,8 +194,8 @@ static bool variableEq(const InputSectio
return false;
if (DA->Value != DB->Value)
return false;
- InputSection<ELFT> *X = dyn_cast<InputSection<ELFT>>(DA->Section);
- InputSection<ELFT> *Y = dyn_cast<InputSection<ELFT>>(DB->Section);
+ auto *X = dyn_cast<InputSection<ELFT>>(DA->Section);
+ auto *Y = dyn_cast<InputSection<ELFT>>(DB->Section);
return X && Y && X->GroupId && X->GroupId == Y->GroupId;
};
More information about the llvm-commits
mailing list