[llvm] 073ab70 - [ObjectYAML] - Do not use auto. NFC.

Georgii Rymar via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 26 05:15:40 PDT 2019


Author: Georgii Rymar
Date: 2019-10-26T15:08:49+03:00
New Revision: 073ab70b72fa0db7d9c591f77377ef3ce88cc222

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

LOG: [ObjectYAML] - Do not use auto. NFC.

Using 'auto' when the type is not obvious is undesired.

(it is just a test commit actually)

Added: 
    

Modified: 
    llvm/lib/ObjectYAML/ELFEmitter.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ObjectYAML/ELFEmitter.cpp b/llvm/lib/ObjectYAML/ELFEmitter.cpp
index dae3f395993d..d5cdb85eab5f 100644
--- a/llvm/lib/ObjectYAML/ELFEmitter.cpp
+++ b/llvm/lib/ObjectYAML/ELFEmitter.cpp
@@ -494,7 +494,7 @@ ELFState<ELFT>::toELFSymbols(ArrayRef<ELFYAML::Symbol> Symbols,
   Ret.resize(Symbols.size() + 1);
 
   size_t I = 0;
-  for (const auto &Sym : Symbols) {
+  for (const ELFYAML::Symbol &Sym : Symbols) {
     Elf_Sym &Symbol = Ret[++I];
 
     // If NameIndex, which contains the name offset, is explicitly specified, we


        


More information about the llvm-commits mailing list