Do not use `auto` for type that is not obvious in a local context.
authorRui Ueyama <ruiu@google.com>
Sat, 24 Feb 2018 01:39:25 +0000 (01:39 +0000)
committerRui Ueyama <ruiu@google.com>
Sat, 24 Feb 2018 01:39:25 +0000 (01:39 +0000)
llvm-svn: 326012

lld/wasm/InputFiles.cpp

index 19e56fd..49fb314 100644 (file)
@@ -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);