[lld] r326012 - Do not use `auto` for type that is not obvious in a local context.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 23 17:39:25 PST 2018
Author: ruiu
Date: Fri Feb 23 17:39:25 2018
New Revision: 326012
URL: http://llvm.org/viewvc/llvm-project?rev=326012&view=rev
Log:
Do not use `auto` for type that is not obvious in a local context.
Modified:
lld/trunk/wasm/InputFiles.cpp
Modified: lld/trunk/wasm/InputFiles.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/wasm/InputFiles.cpp?rev=326012&r1=326011&r2=326012&view=diff
==============================================================================
--- lld/trunk/wasm/InputFiles.cpp (original)
+++ lld/trunk/wasm/InputFiles.cpp Fri Feb 23 17:39:25 2018
@@ -201,8 +201,8 @@ void ObjFile::initializeSymbols() {
ArrayRef<uint32_t> FuncTypes = WasmObj->functionTypes();
ArrayRef<WasmSignature> Types = WasmObj->types();
- for (const auto &C : WasmObj->comdats())
- Symtab->addComdat(C, this);
+ for (StringRef Name : WasmObj->comdats())
+ Symtab->addComdat(Name, this);
for (const WasmSegment &S : WasmObj->dataSegments()) {
InputSegment *Seg = make<InputSegment>(S, this);
More information about the llvm-commits
mailing list