From: Rui Ueyama Date: Sun, 20 Nov 2016 02:43:44 +0000 (+0000) Subject: Use auto for obvious types. X-Git-Tag: llvmorg-4.0.0-rc1~4060 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f8cb730ebbcac7278b80d6896d65e344d4c207a;p=platform%2Fupstream%2Fllvm.git Use auto for obvious types. llvm-svn: 287481 --- diff --git a/lld/ELF/ICF.cpp b/lld/ELF/ICF.cpp index 77f1c9a..229c07a 100644 --- a/lld/ELF/ICF.cpp +++ b/lld/ELF/ICF.cpp @@ -194,8 +194,8 @@ static bool variableEq(const InputSection *A, ArrayRef RelsA, return false; if (DA->Value != DB->Value) return false; - InputSection *X = dyn_cast>(DA->Section); - InputSection *Y = dyn_cast>(DB->Section); + auto *X = dyn_cast>(DA->Section); + auto *Y = dyn_cast>(DB->Section); return X && Y && X->GroupId && X->GroupId == Y->GroupId; };